Skip to content

Commit

Permalink
Use bakery if present
Browse files Browse the repository at this point in the history
Closes alsur#3
  • Loading branch information
jayvdb committed Jun 15, 2020
1 parent 8baf77d commit 04c71ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion admin_auto_tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

import factory
from django.contrib.auth import get_user_model
from model_mommy import mommy
try:
from model_bakery import bakery as mommy
except ImportError:
from model_mommy import mommy

try:
from django.core.urlresolvers import reverse
Expand Down

0 comments on commit 04c71ed

Please sign in to comment.