#25883: Admin Delete Page Incorrectly Counts Related Objects
-------------------------------+--------------------------------------
     Reporter:  jpulec         |                    Owner:  sir-sigurd
         Type:  Bug            |                   Status:  assigned
    Component:  contrib.admin  |                  Version:  1.9
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by sir-sigurd):

 * has_patch:  0 => 1


Comment:

 Minimal example to reproduce:
 {{{
 class Shrubbery(models.Model):
     pass

 class KnightWhoSayNi(models.Model):
     shrubbery = ForeignKey(Shrubbery, related_name='+')
     another_shrubbery = ForeignKey(Shrubbery, related_name='+')

 shrubbery = Shrubbery.objects.create()
 KnightWhoSayNi.objects.create(shrubbery=shrubbery,
 another_shrubbery=shrubbery)
 }}}

 PR -- https://github.com/django/django/pull/5796

--
Ticket URL: <https://code.djangoproject.com/ticket/25883#comment:3>
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/064.255602ab8c50f4cf154b3b1ae1dddb6d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to