#24323: NameError: global name XXXXXAdmin is not defined when using admin register decorator with an __init__ super call -------------------------------+-------------------- Reporter: eskhool | Owner: nobody Type: Bug | Status: new Component: contrib.admin | Version: 1.7 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------- When registering a django admin using the {{{ @admin.register(XXXX) class XXXXAdmin(admin.ModelAdmin): def __init__(args, kwargs): super(XXXXAdmin, self).__init__(args, kwargs) }}}
gives an exception: {{{ NameError: global name XXXXXAdmin is not defined }}} -- Ticket URL: <https://code.djangoproject.com/ticket/24323> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.ac56630cc2214f0ac42b18f89815c86f%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.