WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

App Label used from Newsletter class instead of instance #330

@frennkie

Description

@frennkie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions