#14144 closed (fixed)
ModelMultipleChoiceField doesnt check validators
| Reported by: | ys | Owned by: | matiasb |
|---|---|---|---|
| Component: | Forms | Version: | dev |
| Severity: | Keywords: | ModelMultipleChoiceField, validators, clean | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
'clean' method is overloaded in ModelMultipleChoiceField but it doesnt call super().clean or run validators.
http://code.djangoproject.com/browser/django/trunk/django/forms/models.py#L1000
So when i pass 'validators=[aaa]' in init aaa is not called.
Attachments (1)
Change History (5)
comment:1 by , 15 years ago
| Owner: | changed from to |
|---|
by , 15 years ago
| Attachment: | 14144.diff added |
|---|
comment:2 by , 15 years ago
| Has patch: | set |
|---|---|
| Triage Stage: | Unreviewed → Ready for checkin |
comment:3 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:4 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
Patch and tests for ModelMultipleChoiceField clean method to run validators