vandersonmota/model_mommy — pull request #41 by berinhard (2012-05-26 19:49:56+00:00)
Title: Support recipes as submodules

In Django 1.4, the project module organization changed since it has [updated its default project layout](https://docs.djangoproject.com/en/dev/releases/1.4/#updated-default-project-layout-and-manage-py). So, now we have something like that organization:

```
manage.py
mysite/
__init__.py
settings.py
urls.py
myapp/
__init__.py
models.py
```

So, if I want to use a recipe in `myapp` module I'll need to put it in `mysite/myapp/mommy_recipe.py`. So, to use it in my tests I'll need to call it as follows:

```
my_object = mommy.make_recipe('mysipe.myapp.mymodel)
```

This 'chained' call wasn't supported before but this commit solves this problem and keep model_mommy working with the old imports.