django-seed icon indicating copy to clipboard operation
django-seed copied to clipboard

Django_seed.exceptions.SeederException: Field app.test2.dsp_publishers cannot be null

Open srikanthnagineni opened this issue 2 years ago • 1 comments

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)_

srikanthnagineni avatar Mar 27 '23 13:03 srikanthnagineni

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

KhaledMohamed422 avatar Aug 10 '23 16:08 KhaledMohamed422