Browse files

Imports moved to allow use built-in generators in settings (import us…

…es settings)
  • Loading branch information...
1 parent 1b40bc9 commit cc83448bf31555f937cb9233aae014579d35c2fc @dullaran dullaran committed Jan 17, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 model_mommy/
5 model_mommy/
@@ -15,9 +15,7 @@
from os.path import abspath, join, dirname
from random import randint, choice, random
from django import VERSION
-from django.contrib.contenttypes.models import ContentType
from django.core.files.base import ContentFile
-from django.db.models import get_models
from model_mommy.timezone import now
@@ -117,4 +115,7 @@ def gen_email():
def gen_content_type():
+ from django.contrib.contenttypes.models import ContentType
+ from django.db.models import get_models
return ContentType.objects.get_for_model(choice(get_models()))

0 comments on commit cc83448

Please sign in to comment.