diff --git a/djadmin2/core.py b/djadmin2/core.py index 385f5cf..55a7b8a 100644 --- a/djadmin2/core.py +++ b/djadmin2/core.py @@ -83,7 +83,6 @@ class Admin2(object): Autodiscovers all admin2.py modules for apps in INSTALLED_APPS by trying to import them. """ - apps = [] for app_name in [x for x in settings.INSTALLED_APPS]: try: import_module("%s.admin2" % app_name) diff --git a/djadmin2/templatetags/admin2_urls.py b/djadmin2/templatetags/admin2_urls.py index 27d815a..e950670 100644 --- a/djadmin2/templatetags/admin2_urls.py +++ b/djadmin2/templatetags/admin2_urls.py @@ -9,4 +9,3 @@ def admin2_urlname(view, action): Converts the view and the specified action into a valid namespaced URLConf name. """ return 'admin2:%s_%s_%s' % (view.app_label, view.model_name, action) -