Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Fixes model_mommy to accept m2m relationships as kwargs #83

Merged
merged 1 commit into from
Mar 24, 2013
Merged

Fixes model_mommy to accept m2m relationships as kwargs #83

merged 1 commit into from
Mar 24, 2013

Conversation

berinhard
Copy link
Owner

There is a bug which the following input was valid once but now it is raising the following error and this bug was created by me on a previous PR (shame on me) and this PR fixex it:

employees = mommy.make(Person, _quantity=3)
customers = mommy.make(Person, _quantity=3)
store = mommy.make(Store, employees=employees, customers=customers)
.....
NameError: global name 'model_attrs' is not defined

@vandersonmota
Copy link
Collaborator

👍

vandersonmota added a commit that referenced this pull request Mar 24, 2013
Fixes model_mommy to accept m2m relationships as kwargs
@vandersonmota vandersonmota merged commit 6e1ada5 into berinhard:master Mar 24, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants