Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

mobiladmin is using admin's namespace for urls #3

Open
h3 opened this issue Apr 3, 2011 · 0 comments
Open

mobiladmin is using admin's namespace for urls #3

h3 opened this issue Apr 3, 2011 · 0 comments

Comments

@h3
Copy link

h3 commented Apr 3, 2011

Therefor you cannot do this in templates

{% mobiladmin:index %}

{% mobiladmin:app_model_change object.id %}

To resolve the issue simply add this to the MobileAdminSite class in sites.py:

def __init__(self, *args, **kwargs):
    super(MobileAdminSite, self).__init__(*args, **kwargs)
    self.name = 'mobileadmin'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant