Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Label used from Newsletter class instead of instance #330

Open
frennkie opened this issue Sep 21, 2020 · 1 comment · May be fixed by #331
Open

App Label used from Newsletter class instead of instance #330

frennkie opened this issue Sep 21, 2020 · 1 comment · May be fixed by #331

Comments

@frennkie
Copy link
Collaborator

frennkie commented Sep 21, 2020

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
Copy link
Collaborator Author

@frennkie frennkie linked a pull request Sep 22, 2020 that will close this issue
@frennkie frennkie changed the title App Label from model instead of obj App Label used from Newsletter class instead of instance Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant