Opened 2 years ago

Closed 2 years ago

#33824 closed New feature (duplicate)

Django create don't return created object when triggers are fired

Reported by: Mohammad Ali Mehdizadeh Owned by: nobody
Component: Database layer (models, ORM) Version: 3.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have a table with some triggers on before update and modify some data.
when an object is created, the returned object is not the same as I get an object from the table.
Manager.create return object as the user inserted, not the real object in the database.

Change History (2)

comment:1 by Mohammad Ali Mehdizadeh, 2 years ago

Component: UncategorizedDatabase layer (models, ORM)
Type: UncategorizedBug
Version: 4.03.2

comment:2 by Mariusz Felisiak, 2 years ago

Resolution: duplicate
Status: newclosed
Type: BugNew feature

Duplicate of #21454.

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