user/models/user.py
def create_superuser(self, email, password):
        """
        Creates and saves a superuser with the given email, date of
        birth and password.
        """
        user = self.create_user(
            email,
            password=password
        )
        user.is_admin = True
        user.save(using=self._db)
        return user

        Creates and saves a superuser with the given email, date of
        birth and password.
        
Creates and saves a superuser with the given email, date of
birth and password.
Creates and saves a superuser with the given email date of birth and password .
def create_superuser(self, email, password):
        user = self.create_user(
            email,
            password=password
        )
        user.is_admin = True
        user.save(using=self._db)
        return user
def create_superuser ( self , email , password ) : user = self . create_user ( email , password = password ) user . is_admin = True user . save ( using = self . _db ) return user
Creates and saves a superuser with the given email, date of
birth and password.
Creates and saves a superuser with the given email date of birth and password .
"""
        Creates and saves a superuser with the given email, date of
        birth and password.
        """
self
email
password