You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not only an issue when using MPTTModels. (so maybe rename the issue?)
It also happens when adding a ForeignKey('self') to a model.
Also, I believe the error handling in ModelSeeder.build_relation() is correct. When the related_model is not generated by the seeder, but the field can be null it should not throw an error. Maybe the seeder should also sometimes return None?
Brobin
changed the title
Error on MPTTModel
Error on ForeignKey to self and MPTTModel
Apr 1, 2016
@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: