#19033: avoid unnecessary queries on ForeignKey(on_delete=models.DO_NOTHING)
--------------------------------+--------------------
     Reporter:  CollinAnderson  |      Owner:  nobody
         Type:  Uncategorized   |     Status:  new
    Component:  Uncategorized   |    Version:  1.4
     Severity:  Normal          |   Keywords:
 Triage Stage:  Unreviewed      |  Has patch:  0
Easy pickings:  0               |      UI/UX:  0
--------------------------------+--------------------
 When deleting objects in the admin, there is no need to run queries on
 related ForeignKey(on_delete=models.DO_NOTHING).

 The query happens when viewing the delete page in the admin. I'm doing
 some tricky model stuff and would prefer if my model wasn't queried at
 all.

 I propose this change:
 https://github.com/django/django/pull/299/files

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19033>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to