django-newsletter icon indicating copy to clipboard operation
django-newsletter copied to clipboard

App Label used from Newsletter class instead of instance

Open frennkie opened this issue 5 years ago • 1 comments
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

frennkie avatar Sep 21 '20 21:09 frennkie

I have the same issue with: https://github.com/dokterbob/django-newsletter/blob/57ac58df4e6049d30e4b9871a31e738d79fc7bb4/newsletter/admin.py#L93 (should be opts = obj._meta)

frennkie avatar Sep 21 '20 21:09 frennkie