Ticket #8140: superuser.diff
File superuser.diff, 648 bytes (added by , 16 years ago) |
---|
-
django/contrib/auth/models.py
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py index b8c58eb..e337bec 100644
a b class UserManager(models.Manager): 111 111 u.is_active = True 112 112 u.is_superuser = True 113 113 u.save() 114 return u 114 115 115 116 def make_random_password(self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789'): 116 117 "Generates a random password with the given length and given allowed_chars"