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

Recursive generate_fx #92

Open
marco-silva0000 opened this issue Aug 23, 2016 · 1 comment
Open

Recursive generate_fx #92

marco-silva0000 opened this issue Aug 23, 2016 · 1 comment

Comments

@marco-silva0000
Copy link

I may be watching at it wrong, but I have a problem even using generate_fx=True, because I think it will only create fk of the model being fixtured. In my example I have Equipment, with Device, With Sector, with Facility, all foreign keys, being device and sector m2m. and I would like to create an Equipment, without manually creating all the rest of the setup.
As discussed here, #58 , sometimes it would be great to recursively generate foreign key relations. maybe there could be a keyword that would specify the recursive limit or something

@marco-silva0000
Copy link
Author

I was missing generate_m2m... the Model that I'm generating doesn't have any, but its 'parents' have, so without that option I would get an error(that told-me to use generate_fk or follow_fk)

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

1 participant