Loading docs/topics/auth.txt +10 −10 Original line number Diff line number Diff line Loading @@ -2074,13 +2074,13 @@ authentication app:: Creates and saves a superuser with the given email, date of birth and password. """ u = self.create_user(username, user = self.create_user(username, password=password, date_of_birth=date_of_birth ) u.is_admin = True u.save(using=self._db) return u user.is_admin = True user.save(using=self._db) return user class MyUser(AbstractBaseUser): Loading Loading
docs/topics/auth.txt +10 −10 Original line number Diff line number Diff line Loading @@ -2074,13 +2074,13 @@ authentication app:: Creates and saves a superuser with the given email, date of birth and password. """ u = self.create_user(username, user = self.create_user(username, password=password, date_of_birth=date_of_birth ) u.is_admin = True u.save(using=self._db) return u user.is_admin = True user.save(using=self._db) return user class MyUser(AbstractBaseUser): Loading