Fixed the issue with django-filters / django 1.7 / pytest

This commit is contained in:
Xavier Ordoquy 2014-04-17 14:30:33 +02:00
parent f22ed49c64
commit c5f68fba06

View File

@ -79,3 +79,9 @@ def pytest_configure():
settings.INSTALLED_APPS += (
'guardian',
)
try:
import django
django.setup()
except AttributeError:
pass