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 Initial Version

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

self.

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

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