I have two models
class League(models.Model):
league_id = models.IntegerField(primary_key=True)
class Fixture(models.Model):
league_id = models.ForeignKey('League',null=True, on_delete=models.SET_NULL)
Fixture model relate on League model with league_id foreign key field. I want to create objects of Fixture class and when i trying to create them i understand that i can't to do it because my fixture model relate to league model which hasn't values. I googled about this problem and found that it is most popular problem in Django. Can anyone give me advise how i should create this kind of objects which refer on doesnt exist objects