mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +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 += (
|
||||
'guardian',
|
||||
)
|
||||
|
||||
try:
|
||||
import django
|
||||
django.setup()
|
||||
except AttributeError:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue
Block a user