#18211: Add a signal to notifying when a ModelAdmin has been registered with an AdminSite -----------------------------------+-------------------------------------- Reporter: filip.dupanovic@… | Owner: nobody Type: New feature | Status: new Component: contrib.admin | Version: Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------------+-------------------------------------- Changes (by Keryn Knight <django@…>):
* needs_docs: => 0 * needs_tests: => 0 * needs_better_patch: => 0 Comment: Are you able to provide a concrete example of how this would be beneficial, or fix problems you're running into that aren't solved by catching AlreadyRegistered/NotRegistered and taking the appropriate action; eg: {{{ try: admin.site.unregister(MyModel) # [...] except NotRegistered: pass # Or do some other things, and then register a new ModelAdmin admin.site.register(MyModel, MyAdmin) }}} -- Ticket URL: <https://code.djangoproject.com/ticket/18211#comment:1> 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.