Ticket #17046: validate_create_user.diff

File validate_create_user.diff, 399 bytes (added by Preston Holmes, 13 years ago)
  • django/contrib/auth/models.py

    diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py
    index 04e68aa..20fbba6 100644
    a b class UserManager(models.Manager):  
    108108                         date_joined=now)
    109109
    110110        user.set_password(password)
     111        user.full_clean()
    111112        user.save(using=self._db)
    112113        return user
    113114
Back to Top