Commits

Michael Hall committed 1ce2fc4

Cleanup from rename

  • Participants
  • Parent commits 6efec03

Comments (0)

Files changed (4)

-from extauth.auth.models import Role
+from extauth.models import Role
 from django.contrib import admin
 
 class RoleAdmin(admin.ModelAdmin):

extauth/management/__init__.py

 def create_roles(app, created_models, verbosity, **kwargs):
     from django.contrib.contenttypes.models import ContentType
     from django.contrib.auth.models import Permission
-    from extauth.auth.models import Role
-    from extauth.auth import roles
+    from extauth.models import Role
+    from extauth import roles
     roles.autodiscover()
     
     if not roles.registered_roles:
                 print "Adding role '%s'" % r
 
 signals.post_syncdb.connect(create_roles,
-    dispatch_uid = "extauth.auth.management.create_roles")
+    dispatch_uid = "extauth.management.create_roles")
 
 def create_model_permissions(app, created_models, verbosity, **kargs):
     from django.contrib.contenttypes.models import ContentType

extauth/management/commands/updateroles.py

 @author: Michael Hall <mhall119@gmail.com>
 '''
 from django.core.management.base import NoArgsCommand
-from extauth.auth.management import create_roles
+from extauth.management import create_roles
 from django.db.models import get_apps
 
 class Command(NoArgsCommand):
 @author: Michael Hall <mhall119@gmail.com>
 '''
 
-from extauth import utils, session
-from extauth.auth.models import Role
-from extauth.fieldperms import permissions
+from extauth import utils, session, permissions
+from extauth.models import Role
 
 from django.contrib.auth.models import User, Group
 from django.contrib.contenttypes.models import ContentType
         except AttributeError:
             continue
 
-        # Step 2: use imp.find_module to find the app's admin.py. For some
+        # Step 2: use imp.find_module to find the app's roles.py. For some
         # reason imp.find_module raises ImportError if the app can't be found
         # but doesn't actually try to import the module. So skip this app if
         # its admin.py doesn't exist