Commit 12f39be5 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #19074 -- Corrected some minor issues with the new custom User docs.

Thanks to Bradley Ayers for the review.
parent b9039268
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -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):