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.6|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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, will in validation of uniqueness, the missing of fields will be suggested successfully, I think we should check if the field exists first.
Change History (5)
comment:1 Changed 23 months ago by timo
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Severity changed from Release blocker to Normal
comment:2 Changed 22 months ago by timo
- Resolution set to needsinfo
- Status changed from new to closed