Skip to content

Instantly share code, notes, and snippets.

@loic
Created December 16, 2013 09:40
Show Gist options
  • Save loic/7984519 to your computer and use it in GitHub Desktop.
Save loic/7984519 to your computer and use it in GitHub Desktop.
diff --git a/django/contrib/auth/management/__init__.py b/django/contrib/auth/management/__init__.py
index 5f24bf0..8cc14894 100644
--- a/django/contrib/auth/management/__init__.py
+++ b/django/contrib/auth/management/__init__.py
@@ -89,6 +89,7 @@ def create_permissions(app, created_models, verbosity, db=DEFAULT_DB_ALIAS, **kw
# Find all the Permissions that have a content_type for a model we're
# looking for. We don't need to check for codenames since we already have
# a list of the ones we're going to create.
+ print len(ctypes)
all_perms = set(auth_app.Permission.objects.using(db).filter(
content_type__in=ctypes,
).values_list(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment