Update file init_test.py

This commit is contained in:
2023-11-06 08:57:41 +00:00
parent c853b0b64f
commit 582b1a89c6

View File

@@ -16,13 +16,14 @@ class CustomModel(models.Model):
html_field = fields.Html('HTML Field') html_field = fields.Html('HTML Field')
external_content = fields.Text('Externe Inhoud')
def get_external_content(): def get_external_content():
response = requests.get('http://localhost:8025') response = requests.get('http://localhost:8025')
return response.text return response.text
#external_content = fields.Text('Externe Inhoud') external_content = get_external_content()
#external_content = get_external_content() self.write({'external_content': external_content})
#self.write({'external_content': external_content})