Opened 9 years ago
Closed 9 years ago
#25241 closed Bug (fixed)
ModelForm.save() gives wrong message when saving invalid form with UUIDField pk
Reported by: | Tim Graham | Owned by: | Tim Graham |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
save()
checks self.instance.pk is None
which is the incorrect condition in the case of a model with a UUIDField
primary key.
Change History (3)
comment:1 by , 9 years ago
Description: | modified (diff) |
---|---|
Has patch: | set |
comment:2 by , 9 years ago
Note:
See TracTickets
for help on using tickets.
PR