I have started a django project with extending User model from AbstractUser to my custom model which have foreign key relation with other model. When I try to create superuser with manage.py it does not create a superuser for testing giving me IntegrityError. I know that there is no records in RoleModel then how do I handle this situation. I will take Role while Teacher Signs up to the site. Any help will be appreciated
class TeacherModel(AbstractUser):
middle_name = models.CharField(max_length=256)
role = models.ForeignKey(RoleModel, on_delete=models.DO_NOTHING, null=True)