Ticket #8140: superuser.diff

File superuser.diff, 648 bytes (added by Eric Holscher, 15 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):  
    111111        u.is_active = True
    112112        u.is_superuser = True
    113113        u.save()
     114        return u
    114115
    115116    def make_random_password(self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789'):
    116117        "Generates a random password with the given length and given allowed_chars"
Back to Top