django-seed
django-seed copied to clipboard
Django_seed.exceptions.SeederException: Field app.test2.dsp_publishers cannot be null
Hi Team,
I am getting the following error, this is my configuration:
class test1(models.Model): dsp_publisher = models.OneToOneField('app.test3', on_delete=models.CASCADE) publisher = models.ForeignKey('app1.test2', on_delete=models.CASCADE)
class test2(models.Model): name = models.CharField(max_length=256) dsp_publishers = models.ManyToManyField('app.test3', related_name='dsp_publishers', through='app.test1') include = models.BooleanField(default=False)
class test3(models.Model): name = models.CharField(max_length=256)_
You must fill the top of down mean fill app.test3 before filling test1 and fill app.test3 before test2 and otherwise
You must fill the top of down mean fill app.test3 before filling test1 and fill app.test3 before test2 and otherwise