[Django] #35350: Crash on write of new instance when using GeneratedField
42 views
Skip to first unread message
Django
unread,
Apr 3, 2024, 9:37:49 AM4/3/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#35350: Crash on write of new instance when using GeneratedField
-------------------------------------+-------------------------------------
Reporter: Matt | Owner: nobody
Hegarty |
Type: Bug | Status: new
Component: Database | Version: 5.0
layer (models, ORM) |
Severity: Normal | Keywords: GeneratedField
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
We have an [https://github.com/django-import-export/django-import- export/issues/1779 issue in django-import-export] where imports of new
instances fails when the model has a GeneratedField.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#35350: Crash on write of new instance when using GeneratedField
-------------------------------------+-------------------------------------
Reporter: Matt Hegarty | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: GeneratedField | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
This is similar to #35019 (fixed by
03af8fbd0f1cfc08edadda248cf5d3498e8ed2f7) but when dealing with instances
that have a primary key assigned and `force_insert` is not specified.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#35350: Crash on write of new instance when using GeneratedField
-------------------------------------+-------------------------------------
Reporter: Matt Hegarty | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 5.0
(models, ORM) |
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#35350: Crash on write of new instance when using GeneratedField
-------------------------------------+-------------------------------------
Reporter: Matt Hegarty | Owner: Sarah
| Boyce
In [changeset:"8b53560eea9f10a1271d3bdf765dc6f969c7d9d5" 8b53560e]:
{{{#!CommitTicketReference repository=""
revision="8b53560eea9f10a1271d3bdf765dc6f969c7d9d5"
Fixed #35350 -- Fixed save() with pk set on models with GeneratedFields.
Thanks Matt Hegarty for the report and Simon Charette and Natalia Bidart
for the reviews.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#35350: Crash on write of new instance when using GeneratedField
-------------------------------------+-------------------------------------
Reporter: Matt Hegarty | Owner: Sarah
| Boyce
Type: Bug | Status: closed
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: GeneratedField | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):
In [changeset:"f075a19e856ced33ddfb0e1330b5c277ddb14bfe" f075a19e]:
{{{#!CommitTicketReference repository=""
revision="f075a19e856ced33ddfb0e1330b5c277ddb14bfe"
[5.0.x] Fixed #35350 -- Fixed save() with pk set on models with
GeneratedFields.
Thanks Matt Hegarty for the report and Simon Charette and Natalia Bidart
for the reviews.