-
Notifications
You must be signed in to change notification settings - Fork 86
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
Error on ForeignKey to self and MPTTModel #15
Comments
This is not only an issue when using Also, I believe the error handling in |
@Brobin is self referencing foreign key issue solved? django-seed/django_seed/seeder.py Line 24 in 6643565
This line is checking .null, but still seeder is throwing the SeederException. parent = models.ForeignKey("self", null=True, blank=True, related_name="children") |
@deepakmishra I'm the primary maintainer for now, so you'd be best pinging me for faster responses 😃 If you are testing how django-seed works, make sure to be building from master since I've added quite a bit that hasn't been released yet. I fear I added some regressions, so I'm working on a testing suite that should have enough breadth to be quite resilient. I also think there are some issues while generating models with foreign keys/many-to-many, but I haven't looked at it in a while. |
Cannot handle MPTTModel; I think it's choking on any ForiegnKey to self. WIll confirm
The text was updated successfully, but these errors were encountered: