Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
srikanthnagineni opened this issue Mar 27, 2023 · 1 comment

Comments

@srikanthnagineni
Copy link

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

@KhaledMohamed422
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants