#29715: Djagno ModelAdmin Pre Delete view page crash in NestedObjects.collect()
method
-------------------------------------+-------------------------------------
Reporter: Pavel | Owner: nobody
Sirotkin |
Type: | Status: new
Uncategorized |
Component: | Version: 1.11
contrib.admin | Keywords: question, admin,
Severity: Normal | delete
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hello, I have some question about pre-delete ModelAdmin view. In my
database I have proxy table (postgress feature) without id column call it
ProxyBigTable. Some elements in another tables linked to this
ProxyBigTable, and when I want delete some objects which have connect with
ProxyBigTable from my standart Django admin interface (click button delete
or action Delete this objects) I get crash, when start working
NestedObjects.collect() method because it build all relations which
deleting from my tables. I have solution add to models who linked to
ProxyBigTable some custom list value where I counting what objects I do
not want to see in pre-delete view. And I override class Collector and
NestedObjects for this, also override _delete_view() method for
ModelAdmin. I not find another, more light solution, maybe you know some
another way?
P.S. Sorry for my English
--
Ticket URL: <https://code.djangoproject.com/ticket/29715>
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/052.e7cf3a9d809cb2df05cc4d5620b4984c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.