Never import setting from openstack_dashboard

Unittests have their own settings and should not source openstack_dashboard
settings.
It is commonly known that django code should always import settings via
"from django.conf import settings".

Change-Id: I4fb5f68ed9595c5f785437b863e2eef7f6ab23c1
Closes-Bug: #1596466
This commit is contained in:
Yves-Gwenael Bourhis 2016-06-27 11:30:21 +02:00
parent 42e3c6884e
commit 797f823c6e
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ from openstack_auth import utils
import horizon
from openstack_dashboard import settings
from django.conf import settings
class Admin(horizon.Dashboard):