[Django] #22375: Suggest to validate unique before running clean in models full_clean etc..

3 views
Skip to first unread message

Django

unread,
Apr 2, 2014, 10:19:58 AM4/2/14
to django-...@googlegroups.com
#22375: Suggest to validate unique before running clean in models full_clean etc..
----------------------------------------------+--------------------
Reporter: dspjmt@… | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Database layer (models, ORM) | Version: 1.5
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
If we use clean(), and check for fields the hasn't been assigned, then it
will raise a doesnotexist exception.

The clean() method claims we can utilize fields which data is clean, it's
not. While in validation of uniqueness, the missing of fields will be
suggested successfully, I think we should check if the field exists first.

--
Ticket URL: <https://code.djangoproject.com/ticket/22375>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 2, 2014, 10:22:56 AM4/2/14
to django-...@googlegroups.com
#22375: Suggest to validate unique before running clean in models full_clean etc..
-------------------------------------+-------------------------------------
Reporter: dspjmt@… | Owner: nobody
Type: | Status: closed
Cleanup/optimization | Version: 1.5
Component: Database layer | Resolution: duplicate
(models, ORM) | Triage Stage:
Severity: Normal | Unreviewed
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by charettes):

* status: new => closed
* needs_better_patch: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_docs: => 0


Comment:

Duplicate of #22374.

--
Ticket URL: <https://code.djangoproject.com/ticket/22375#comment:1>

Reply all
Reply to author
Forward
0 new messages