Thursday, December 31, 2015

Delete confirmation page in Django admin not displaying child records

Using Django 1.6.11

I have just noticed for a few cases (at least) that, while delete confirmation page in Django admin shows as usual in my app, it does not also show the related child records that will be deleted when a parent record is selected (the confirmation page only shows the parent record).  I ran a separate test using this code - http://thirld.com/blog/2012/09/17/django-enumerate-related-objects-cascade-deleted/ - which shows that there, in fact, related records.

(I do not - yet - have tests that would have showed me when this functionality stopped working; I had assumed that, because it was part of Django, I would not need tests for this.)

Any ideas why this happening and how to "revert" to the expected behaviour?

Thanks
Derek

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF1Wu3NhA9TeDiX9Dcra88B5--MD_Z37Amf-LF0YbVc6%3DgEknQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment