--- a/src/ldt/ldt/security/command.py Wed May 15 10:05:17 2013 +0200
+++ b/src/ldt/ldt/security/command.py Mon May 20 18:02:37 2013 +0200
@@ -1,9 +1,12 @@
from django.conf import settings
-from django.contrib.auth.models import Group, User
+from django.contrib.auth import get_user_model
+from django.contrib.auth.models import Group
from guardian.shortcuts import assign, remove_perm
from ldt.ldt_utils.models import Project, Content
from ldt.management.utils import show_progress
+User = get_user_model()
+
def set_default_permissions(verbose=False, is_migration=False, orm=None):
writer = None