Skip to content

Commit

Permalink
Fixed #19074 -- Corrected some minor issues with the new custom User …
Browse files Browse the repository at this point in the history
…docs.

Thanks to Bradley Ayers for the review.
  • Loading branch information
freakboy3742 committed Oct 6, 2012
1 parent b903926 commit 12f39be
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/topics/auth.txt
Expand Up @@ -2074,20 +2074,20 @@ authentication app::
Creates and saves a superuser with the given email, date of
birth and password.
"""
u = self.create_user(username,
password=password,
date_of_birth=date_of_birth
)
u.is_admin = True
u.save(using=self._db)
return u
user = self.create_user(username,
password=password,
date_of_birth=date_of_birth
)
user.is_admin = True
user.save(using=self._db)
return user


class MyUser(AbstractBaseUser):
email = models.EmailField(
verbose_name='email address',
max_length=255
)
verbose_name='email address',
max_length=255
)
date_of_birth = models.DateField()
is_active = models.BooleanField(default=True)
is_admin = models.BooleanField(default=False)
Expand Down

0 comments on commit 12f39be

Please sign in to comment.