Skip to content

Commit bc9bf06

Browse files
committed
breaking: changed AdminSite name
renamed to be consistend with module_name please rename your urls if you used mongoadmin
1 parent 9d38fa3 commit bc9bf06

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

django_mongoengine/mongo_admin/sites.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
from django_mongoengine.mongo_admin.options import DocumentAdmin
66
from django_mongoengine.forms.document_options import DocumentMetaWrapper
7-
#from django_mongoengine.mongo_admin import actions
7+
# from django_mongoengine.mongo_admin import actions
88

99
system_check_errors = []
1010

11+
1112
class AdminSite(sites.AdminSite):
1213
index_template = "mongo_admin/index.html"
1314

@@ -30,4 +31,4 @@ def unregister(self, model_or_iterable):
3031

3132
# This global object represents the default admin site, for the common case.
3233
# You can instantiate AdminSite in your own code to create a custom admin site.
33-
site = AdminSite(name="mongoadmin")
34+
site = AdminSite(name="mongo_admin")

0 commit comments

Comments
 (0)