Created
December 16, 2013 09:40
-
-
Save loic/7984519 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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