Skip to content
Browse files

Fixed #17450 -- Added missing import to auth models module forgotten …

…in r17253. Thanks, aalbrecht.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 7a67102 commit 64066a59d9fd4ee746e373e98a2cc1c7e26801e3 @jezdez jezdez committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 django/contrib/auth/
3 django/contrib/auth/
@@ -4,6 +4,7 @@
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(
- 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):

0 comments on commit 64066a5

Please sign in to comment.
Something went wrong with that request. Please try again.