Opened 11 years ago

Closed 11 years ago

#22375 closed Cleanup/optimization (duplicate)

Suggest to validate unique before running clean in models full_clean etc..

Reported by: dspjmt@… Owned by: nobody
Component: Database layer (models, ORM) Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Change History (1)

comment:1 by Simon Charette, 11 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #22374.

Note: See TracTickets for help on using tickets.
Back to Top