Closed Mike-Heneghan closed 4 years ago
Recreated an error by trying to email a service with an improperly formatted address i.e.
Also, trigger the crash by hitting send with a blank email field.
Need to handle the 'required' and 'invalid' errors.
Added a form_invalid
method to the service email form to catch when a submitted email is invalid, redirect back to the service detail page and then display a message that the email was not successfully added. It would be desirable to make the message more obvious potentially by changing the background colour.
I think there might be a better way to display errors on the field although I couldn't find it.
Merged into master
Internal Server Error: /services/email/
ImproperlyConfigured at /services/email/ TemplateResponseMixin requires either a definition of ‘template_name’ or an implementation of ‘get_template_names()’