#30330: Deletion isn't updating model
-------------------------------------+-------------------------------------
Reporter: Artui | Owner: nobody
Type: Bug | Status: new
Component: Database | Version: 2.2
layer (models, ORM) |
Severity: Normal | Keywords: delete, pk
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Deleting any model with no dependencies not updates the PK on the model.
It should be set to `None` after `.delete()` call.
See Django.db.models.deletion:276-281. Should update the model line 280.
--
Ticket URL: <https://code.djangoproject.com/ticket/30330>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.55373eabc3ec3fab883abfaffa1e3b39%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.