Skip to content

SQLAlchemyFactory with relationship sub factory for foreign keys #603

Answered by adhtruong
MetaHG asked this question in Q&A
Discussion options

You must be logged in to vote

I think this should work if set cake = Ignore() on MenuFactory. Currently it is being set to a value which gives this behaviour but Ignore omits this value entirely.

Does this work?

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@MetaHG
Comment options

Answer selected by MetaHG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants