Update file init_test.py
This commit is contained in:
@@ -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})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user