django-newsletter
django-newsletter copied to clipboard
App Label used from Newsletter class instead of instance
trafficstars
I'm having problems subclassing NewsletterAdmin. I have a app called myapp, but when I subclass the admin classes then instead of e.g. myapp.subscription the reverse match is always attempted for newsletter.subscription.
I think the problem is that the code uses model._meta.app_label instead of obj._meta.app_label
I have the same issue with: https://github.com/dokterbob/django-newsletter/blob/57ac58df4e6049d30e4b9871a31e738d79fc7bb4/newsletter/admin.py#L93 (should be opts = obj._meta)