#16913: Admin error when trying to delete object with a GenericRelation ------------------------------------+------------------------------- Reporter: r1cky | Owner: carljm Type: Bug | Status: assigned Milestone: | Component: contrib.admin Version: 1.3 | 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 carljm):
* owner: nobody => carljm * status: new => assigned * stage: Unreviewed => Accepted Comment: Does this only occur if the `GenericRelation` has a `related_name` explicitly specified? What's the purpose of specifying `related_name` on the `GenericRelation` in that example, since a reverse manager isn't added (a reverse manager doesn't really make sense, since you already have `content_object`; in a sense, the `GenericRelation` *is* the reverse manager for the GFK)? If the answers to the above two questions are "yes" and "no purpose" (I don't have time at the moment to dig into it and see), it may be that the real bug here is just that `GenericRelation` shouldn't accept a useless `related_name` argument. -- Ticket URL: <https://code.djangoproject.com/ticket/16913#comment:2> 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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.