Update file init_test.py

This commit is contained in:
2023-11-06 09:59:05 +00:00
parent 4e943dd168
commit c71ffa1b2e

View File

@@ -18,7 +18,7 @@ class CustomModel(models.Model):
html_field = fields.Html('HTML Field')
external_content = fields.Text('Externe Inhoud')
raise UserError(external_content)
raise ValidationError(external_content)
def get_external_content():
response = requests.get('http://localhost:8025')