#25594: ModelForm`s URLField does not use model`s URLField validator
----------------------------+--------------------
Reporter: marcinn | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------
There is incosistency between model's URLField and modelform's URLField
validation.
Form's URLField does not use model's field validation.
Form and model fields have declared class properties with own validators,
whose defaults to `validators.URLValidator()`. But when you customize
validator for model field, the form is still using own (and bad in this
context) instance. As a result validation differs for form and model. And
this is an incosistency between modelforms and models.
--
Ticket URL: <https://code.djangoproject.com/ticket/25594>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.d8554d98ac970b137184baa85c1d9621%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.