Django 2.0 support

Change-Id: Id3db080c8641b018ab6cab39ddb6fa34c9e7988c
This commit is contained in:
Akihiro Motoki 2018-05-07 05:31:46 +09:00
parent 31f30346ae
commit 74f7308981
62 changed files with 80 additions and 76 deletions

View File

@ -10,6 +10,9 @@
- openstack-tox-py35: - openstack-tox-py35:
required-projects: required-projects:
openstack/horizon openstack/horizon
- horizon-openstack-tox-py35dj20:
required-projects:
openstack/horizon
gate: gate:
jobs: jobs:
- openstack-tox-lower-constraints: - openstack-tox-lower-constraints:
@ -19,6 +22,9 @@
- openstack-tox-py35: - openstack-tox-py35:
required-projects: required-projects:
openstack/horizon openstack/horizon
- horizon-openstack-tox-py35dj20:
required-projects:
openstack/horizon
- job: - job:
name: manila-ui-dsvm name: manila-ui-dsvm

View File

@ -16,7 +16,7 @@
Admin views for managing security services. Admin views for managing security services.
""" """
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import tables from horizon import tables

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -13,9 +13,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse
from django.template.defaultfilters import title # noqa from django.template.defaultfilters import title # noqa
from django.urls import reverse
from django.utils.translation import pgettext_lazy from django.utils.translation import pgettext_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy from django.utils.translation import ungettext_lazy

View File

@ -17,8 +17,8 @@
Admin views for managing share group snapshots. Admin views for managing share group snapshots.
""" """
from django.core.urlresolvers import reverse from django.urls import reverse
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -17,8 +17,8 @@
Admin views for managing share group types. Admin views for managing share group types.
""" """
from django.core.urlresolvers import reverse from django.urls import reverse
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy from django.utils.translation import ungettext_lazy
from horizon import tables from horizon import tables

View File

@ -17,8 +17,8 @@
Admin views for managing share groups. Admin views for managing share groups.
""" """
from django.core.urlresolvers import reverse from django.urls import reverse
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import tables from horizon import tables
import six import six

View File

@ -16,7 +16,7 @@
Admin views for managing share instances. Admin views for managing share instances.
""" """
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import tables from horizon import tables

View File

@ -16,7 +16,7 @@
Admin views for managing share networks. Admin views for managing share networks.
""" """
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import tables from horizon import tables

View File

@ -10,8 +10,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse
from django.template.defaultfilters import title # noqa from django.template.defaultfilters import title # noqa
from django.urls import reverse
from django.utils.translation import pgettext_lazy from django.utils.translation import pgettext_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy from django.utils.translation import ungettext_lazy

View File

@ -16,8 +16,8 @@
Admin views for managing share servers. Admin views for managing share servers.
""" """
from django.core.urlresolvers import reverse from django.urls import reverse
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import tables from horizon import tables

View File

@ -11,8 +11,8 @@
# under the License. # under the License.
from django.core.urlresolvers import reverse
from django.template.defaultfilters import title # noqa from django.template.defaultfilters import title # noqa
from django.urls import reverse
from django.utils.translation import pgettext_lazy from django.utils.translation import pgettext_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy from django.utils.translation import ungettext_lazy

View File

@ -16,7 +16,7 @@
Admin views for managing share snapshots. Admin views for managing share snapshots.
""" """
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import tables from horizon import tables

View File

@ -14,8 +14,8 @@
Admin views for managing share types. Admin views for managing share types.
""" """
from django.core.urlresolvers import reverse from django.urls import reverse
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -14,8 +14,8 @@
# under the License. # under the License.
from django.conf import settings from django.conf import settings
from django.core.urlresolvers import reverse
from django.forms import ValidationError # noqa from django.forms import ValidationError # noqa
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy from django.utils.translation import ungettext_lazy

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions

View File

@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import tables from horizon import tables

View File

@ -16,8 +16,8 @@
Admin views for managing shares. Admin views for managing shares.
""" """
from django.core.urlresolvers import reverse from django.urls import reverse
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -13,9 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse
from django.forms import ValidationError # noqa from django.forms import ValidationError # noqa
from django.template.defaultfilters import filesizeformat # noqa from django.template.defaultfilters import filesizeformat # noqa
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.views.decorators.debug import sensitive_variables # noqa from django.views.decorators.debug import sensitive_variables # noqa
from horizon import exceptions from horizon import exceptions

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -13,9 +13,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse
from django.template.defaultfilters import title # noqa from django.template.defaultfilters import title # noqa
from django.urls import reverse
from django.utils.http import urlencode # noqa from django.utils.http import urlencode # noqa
from django.utils.translation import pgettext_lazy from django.utils.translation import pgettext_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _

View File

@ -17,8 +17,8 @@
Project views for managing share group snapshots. Project views for managing share group snapshots.
""" """
from django.core.urlresolvers import reverse from django.urls import reverse
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -13,8 +13,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse
from django.forms import ValidationError # noqa from django.forms import ValidationError # noqa
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy from django.utils.translation import ungettext_lazy
from horizon import tables from horizon import tables

View File

@ -17,8 +17,8 @@
Project views for managing share groups. Project views for managing share groups.
""" """
from django.core.urlresolvers import reverse from django.urls import reverse
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -13,9 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse
from django.forms import ValidationError # noqa from django.forms import ValidationError # noqa
from django.template.defaultfilters import filesizeformat # noqa from django.template.defaultfilters import filesizeformat # noqa
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import NoReverseMatch # noqa
from django.template.defaultfilters import title # noqa from django.template.defaultfilters import title # noqa
from django.urls import NoReverseMatch # noqa
from django.utils.translation import pgettext_lazy from django.utils.translation import pgettext_lazy
from django.utils.translation import string_concat # noqa from django.utils.translation import string_concat # noqa
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -17,9 +17,9 @@
Views for managing share snapshots. Views for managing share snapshots.
""" """
from django.core.urlresolvers import reverse
from django.forms import ValidationError # noqa from django.forms import ValidationError # noqa
from django.template.defaultfilters import filesizeformat # noqa from django.template.defaultfilters import filesizeformat # noqa
from django.urls import reverse
from django.utils.http import urlencode # noqa from django.utils.http import urlencode # noqa
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions

View File

@ -12,9 +12,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import NoReverseMatch # noqa
from django.core.urlresolvers import reverse
from django.template.defaultfilters import title # noqa from django.template.defaultfilters import title # noqa
from django.urls import NoReverseMatch # noqa
from django.urls import reverse
from django.utils.http import urlencode # noqa from django.utils.http import urlencode # noqa
from django.utils.translation import pgettext_lazy from django.utils.translation import pgettext_lazy
from django.utils.translation import string_concat # noqa from django.utils.translation import string_concat # noqa

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -14,9 +14,9 @@
# under the License. # under the License.
from django.conf import settings from django.conf import settings
from django.core.urlresolvers import reverse
from django.forms import ValidationError # noqa from django.forms import ValidationError # noqa
from django.template.defaultfilters import filesizeformat # noqa from django.template.defaultfilters import filesizeformat # noqa
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions

View File

@ -13,8 +13,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse
from django.template.defaultfilters import title from django.template.defaultfilters import title
from django.urls import reverse
from django.utils.translation import pgettext_lazy from django.utils.translation import pgettext_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy from django.utils.translation import ungettext_lazy

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions

View File

@ -12,9 +12,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import NoReverseMatch # noqa
from django.core.urlresolvers import reverse
from django.template.defaultfilters import title # noqa from django.template.defaultfilters import title # noqa
from django.urls import NoReverseMatch # noqa
from django.urls import reverse
from django.utils.translation import string_concat, ugettext_lazy # noqa from django.utils.translation import string_concat, ugettext_lazy # noqa
from django.utils.translation import pgettext_lazy from django.utils.translation import pgettext_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.core.urlresolvers import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from horizon import exceptions as horizon_exceptions from horizon import exceptions as horizon_exceptions
import mock import mock
from openstack_dashboard.api import keystone as api_keystone from openstack_dashboard.api import keystone as api_keystone

View File

@ -14,7 +14,7 @@
# under the License. # under the License.
import ddt import ddt
from django.core.urlresolvers import reverse from django.urls import reverse
import mock import mock
from manila_ui.api import manila as api_manila from manila_ui.api import manila as api_manila

View File

@ -12,7 +12,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
import mock import mock
from manila_ui.api import manila as api_manila from manila_ui.api import manila as api_manila

View File

@ -14,7 +14,7 @@
# under the License. # under the License.
import ddt import ddt
from django.core.urlresolvers import reverse from django.urls import reverse
import mock import mock
from manila_ui.api import manila as api_manila from manila_ui.api import manila as api_manila

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from horizon import exceptions as horizon_exceptions from horizon import exceptions as horizon_exceptions
import mock import mock
from openstack_dashboard.api import keystone as api_keystone from openstack_dashboard.api import keystone as api_keystone

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from horizon import exceptions as horizon_exceptions from horizon import exceptions as horizon_exceptions
import mock import mock
from neutronclient.client import exceptions from neutronclient.client import exceptions

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from horizon import exceptions as horizon_exceptions from horizon import exceptions as horizon_exceptions
import mock import mock
from openstack_dashboard.api import keystone as api_keystone from openstack_dashboard.api import keystone as api_keystone

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from horizon import exceptions as horizon_exceptions from horizon import exceptions as horizon_exceptions
import mock import mock
from openstack_dashboard.api import keystone as api_keystone from openstack_dashboard.api import keystone as api_keystone

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
import mock import mock
from openstack_dashboard.api import keystone as api_keystone from openstack_dashboard.api import keystone as api_keystone
from openstack_dashboard.api import neutron as api_neutron from openstack_dashboard.api import neutron as api_neutron

View File

@ -13,7 +13,7 @@
# under the License. # under the License.
import ddt import ddt
from django.core.urlresolvers import reverse from django.urls import reverse
import mock import mock
from manila_ui.api import manila as api_manila from manila_ui.api import manila as api_manila

View File

@ -14,7 +14,7 @@
# under the License. # under the License.
import ddt import ddt
from django.core.urlresolvers import reverse from django.urls import reverse
import mock import mock
from openstack_dashboard.api import keystone as api_keystone from openstack_dashboard.api import keystone as api_keystone
from openstack_dashboard.api import neutron as api_neutron from openstack_dashboard.api import neutron as api_neutron

View File

@ -16,7 +16,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from horizon import exceptions as horizon_exceptions from horizon import exceptions as horizon_exceptions
import mock import mock
from openstack_dashboard import api from openstack_dashboard import api

View File

@ -14,7 +14,7 @@
# under the License. # under the License.
import ddt import ddt
from django.core.urlresolvers import reverse from django.urls import reverse
import mock import mock
from manila_ui.api import manila as api_manila from manila_ui.api import manila as api_manila

View File

@ -14,7 +14,7 @@
# under the License. # under the License.
import ddt import ddt
from django.core.urlresolvers import reverse from django.urls import reverse
import mock import mock
from manila_ui.api import manila as api_manila from manila_ui.api import manila as api_manila

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
import mock import mock
from neutronclient.client import exceptions from neutronclient.client import exceptions
from openstack_auth import policy from openstack_auth import policy

View File

@ -13,7 +13,7 @@
# under the License. # under the License.
import ddt import ddt
from django.core.urlresolvers import reverse from django.urls import reverse
import mock import mock
from openstack_dashboard.api import neutron from openstack_dashboard.api import neutron
from openstack_dashboard.usage import quotas from openstack_dashboard.usage import quotas

View File

@ -13,7 +13,7 @@
# under the License. # under the License.
import ddt import ddt
from django.core.urlresolvers import reverse from django.urls import reverse
import mock import mock
from openstack_dashboard.api import neutron from openstack_dashboard.api import neutron

View File

@ -14,7 +14,7 @@
import ddt import ddt
from django.core.handlers import wsgi from django.core.handlers import wsgi
from django.core.urlresolvers import reverse from django.urls import reverse
from horizon import messages as horizon_messages from horizon import messages as horizon_messages
import mock import mock
from openstack_dashboard.api import neutron from openstack_dashboard.api import neutron

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from django.core.urlresolvers import reverse from django.urls import reverse
from django.utils import translation from django.utils import translation
import mock import mock