summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-12-23 11:22:13 +0000
committerJannis Leidel <jannis@leidel.info>2011-12-23 11:22:13 +0000
commit64066a59d9fd4ee746e373e98a2cc1c7e26801e3 (patch)
tree09ef6887e03ce757769c9515f72e2cb4fe2f6352
parent7a67102e8d869eb0d130d99b90387bd40aa91ee7 (diff)
Fixed #17450 -- Added missing import to auth models module forgotten in r17253. Thanks, aalbrecht.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17260 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/auth/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py
index 36ac6d8605..c574b5109c 100644
--- a/django/contrib/auth/models.py
+++ b/django/contrib/auth/models.py
@@ -4,6 +4,7 @@ from django.core.exceptions import ImproperlyConfigured
from django.core.mail import send_mail
from django.db import models
from django.db.models.manager import EmptyManager
+from django.utils.crypto import get_random_string
from django.utils.encoding import smart_str
from django.utils.translation import ugettext_lazy as _
from django.utils import timezone
@@ -31,7 +32,7 @@ class PermissionManager(models.Manager):
def get_by_natural_key(self, codename, app_label, model):
return self.get(
codename=codename,
- content_type=ContentType.objects.get_by_natural_key(app_label, model)
+ content_type=ContentType.objects.get_by_natural_key(app_label, model),
)
class Permission(models.Model):