Migration 1.2.5 to 1.3 breaks Apps
|Reported by:||dev66@…||Owned by:||nobody|
|Severity:||Release blocker||Keywords:||Forms Save|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
We have the impression, that the form save behavior was revamped and works differently now.
observed behavior in v1.3:
form.save() does not always return the primary key of the object saved to the database table.
why "not always"?
1) f = form(instance=None)
works. form.save() returns an instance object with the correct pk from the database.
2) f = form(instance=SomeModelObject())
form.save() returns an instance object but the pk of the instance is None.
however, the instance is correctly saved to the database.
Is this behavior intended?