Author: jezdez
Date: 2011-12-23 03:22:13 -0800 (Fri, 23 Dec 2011)
New Revision: 17260

Modified:
   django/trunk/django/contrib/auth/models.py
Log:
Fixed #17450 -- Added missing import to auth models module forgotten in r17253. 
Thanks, aalbrecht.

Modified: django/trunk/django/contrib/auth/models.py
===================================================================
--- django/trunk/django/contrib/auth/models.py  2011-12-23 11:19:00 UTC (rev 
17259)
+++ django/trunk/django/contrib/auth/models.py  2011-12-23 11:22:13 UTC (rev 
17260)
@@ -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 @@
     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):

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to