summaryrefslogtreecommitdiff
path: root/docs/ref/forms
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2025-01-11 01:08:35 -0500
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-01-13 11:13:29 +0100
commit9e552015556661d183a999078a9e846200ef6765 (patch)
tree434cbeb5be28ffb5e89c51d629377dfc28932105 /docs/ref/forms
parent20eb4bca7de945d8858d1354a8c624406c0b90bd (diff)
Fixed #36086 -- Fixed crash when using GeneratedField with non-AutoField pk.
The previous logic was systematically attempting to retrieve last_insert_id even for models without an AutoField primary key when they had a GeneratedField on backends that can't return columns from INSERT. The issue affected MySQL, SQLite < 3.35, and Oracle when the use_returning_into option was disabled and could result in either crashes when the non-auto primary key wasn't an IntegerField subclass or silent misassignment of bogus insert ids (0 or the previous auto primary key insert value) to the first defined generated field value.
Diffstat (limited to 'docs/ref/forms')
0 files changed, 0 insertions, 0 deletions