-
Notifications
You must be signed in to change notification settings - Fork 118
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
Handling GenericForeignKey's #32
Comments
Another issue with GFK's is that you cant just do |
I took a crack at implementing this. |
Here is how I'm using AutoFixture in models with GenericForeignKey. https://gist.github.com/alb3rto269/def529c94f47272bed8d2990c93d99f2 |
I think, for that case, instances of
GeneridForeignKey
are also could be passed toget_generator()
, and being skipped in base implementation, so user will can handle them in subclass method.Or another hook like
prost_process_instance
could be defined, which must be called before instance being saved first time.The text was updated successfully, but these errors were encountered: