def create_superuser(self, email, password):
    'Creates and saves a new super user'
    user = self.create_user(email, password)
    user.is_superuser = True
    user.is_staff = True
    user.save(using=self._db)
    return user
Creates and saves a new super user
def create_superuser(self, email, password):
    
    user = self.create_user(email, password)
    user.is_superuser = True
    user.is_staff = True
    user.save(using=self._db)
    return user