mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-16 19:41:06 +03:00
Fixed the issue with django-filters / django 1.7 / pytest
This commit is contained in:
parent
f22ed49c64
commit
c5f68fba06
|
@ -79,3 +79,9 @@ def pytest_configure():
|
||||||
settings.INSTALLED_APPS += (
|
settings.INSTALLED_APPS += (
|
||||||
'guardian',
|
'guardian',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
|
import django
|
||||||
|
django.setup()
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user