Opened 9 years ago

Last modified 9 years ago

#25241 closed Bug

ModelForm.save() gives wrong message when saving invalid form with UUIDField pk — at Version 1

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 Tim Graham)

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 (1)

comment:1 by Tim Graham, 9 years ago

Description: modified (diff)
Has patch: set
Note: See TracTickets for help on using tickets.
Back to Top