#33591: Incorrect validation message
-------------------------------------+-------------------------------------
Reporter: Maria Sorokina | Owner: nobody
Type: Bug | Status: closed
Component: Forms | Version: 4.0
Severity: Normal | Resolution: invalid
Keywords: ValidationError, | Triage Stage:
validation, message | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => invalid
* component: Database layer (models, ORM) => Forms
Comment:
Validation error messages defined at the model level are always override
with those defined on the form fields, see
[https://docs.djangoproject.com/en/stable/topics/forms/modelforms
/#considerations-regarding-model-s-error-messages docs].
`forms.IntegerField` has already defined an
[https://github.com/django/django/blob/b07ee98b27e58992fdc10fec0ec67e68ae1d272d/django/forms/fields.py#L297-L299
invalid] error message.
--
Ticket URL: <https://code.djangoproject.com/ticket/33591#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107017fab799b26-c5aeb32b-f12c-4efa-9bfd-b0ba7ee744c8-000000%40eu-central-1.amazonses.com.