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

Offer a setting for the "admin" namespace for url reversing #2

Open
kmahelona opened this issue Aug 30, 2018 · 0 comments
Open

Offer a setting for the "admin" namespace for url reversing #2

kmahelona opened this issue Aug 30, 2018 · 0 comments

Comments

@kmahelona
Copy link
Contributor

While the canonical thing to do is have "admin" be the url namespace for admin, we've got TWO different admins. I've since moved away from having one be "admin" for some unforgotten reason. Anyway I was wondering if we could have a setting so that one could define the namespace url to use for colloquialisms. I'm not sure if this is against the Django philosophy.

For example, this exists,

    change_view = 'admin:%s_%s_change' % (
        item_cls._meta.app_label, item_cls._meta.model_name)

but instead what if we could do,

    change_view = '%s:%s_%s_change' % (
        settings.COLLOQUIALISMS_ADMIN_NAMESPACE,
        item_cls._meta.app_label, item_cls._meta.model_name)

where COLLOQUIALISMS_ADMIN_NAMESPACE="some_string".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant