#30610: Model.full_clean() doesn't prevetn invalid (null) values when
blank=True.
-------------------------------------+-------------------------------------
Reporter: Keryn Knight | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Keryn Knight):
Ah, didn't find that when searching Trac, sorry.
Perhaps it's worth pointing out that commenting out (just to see what
happens) `if f.blank and raw_value in f.empty_values: continue` only seems
to cause one test to fail (`test_validation_with_empty_blank_field`) and
whilst it may be related to this, it doesn't look it at a glance.
--
Ticket URL: <https://code.djangoproject.com/ticket/30610#comment:2>
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/067.fc53935f56b2216b201b4a30ad513000%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.