Browse Source

Revert "Import fix try"

This reverts commit 407a5f373c197cff52fc2bdd6e1448b333b9dadc.
Denis K 9 years ago
parent
commit
87c17cd350
1 changed files with 2 additions and 6 deletions
  1. 2 6
      jet/tests/test_dashboard.py

+ 2 - 6
jet/tests/test_dashboard.py

@@ -1,3 +1,4 @@
+from django.contrib.auth.models import User
 from django.test import TestCase, Client
 from django.test import TestCase, Client
 from jet.dashboard.modules import LinkList, RecentActions
 from jet.dashboard.modules import LinkList, RecentActions
 from jet.dashboard.models import UserDashboardModule
 from jet.dashboard.models import UserDashboardModule
@@ -13,17 +14,12 @@ class DashboardTestCase(TestCase):
         self._login()
         self._login()
         self._init_dashboard()
         self._init_dashboard()
 
 
-    @property
-    def User(self):
-        from django.contrib.auth.models import User
-        return User
-
     def _login(self):
     def _login(self):
         username = 'admin'
         username = 'admin'
         email = 'admin@example.com'
         email = 'admin@example.com'
         password = 'admin'
         password = 'admin'
         self.admin = Client()
         self.admin = Client()
-        self.admin_user = self.User.objects.create_superuser(username, email, password)
+        self.admin_user = User.objects.create_superuser(username, email, password)
         return self.admin.login(username=username, password=password)
         return self.admin.login(username=username, password=password)
 
 
     def _init_dashboard(self):
     def _init_dashboard(self):