How to override createsuperuser command in django
How to override createsuperuser command in django Question: I’m trying to customize the createsuperuser command. The purpose of this is: I’ve a table called administrator, and its have OneToOne relationship with auth_user table class Administrator(models.Model): user = models.OneToOneField(get_user_model(), on_delete=models.CASCADE, related_name="admin") And whenever I create new super user by using command createsuperuser, i’d like to create …