Merge "Django 4.x: Replace removed features"
This commit is contained in:
commit
8f437339c6
@ -13,7 +13,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from openstack_dashboard.api import base
|
from openstack_dashboard.api import base
|
||||||
from watcherclient import client as wc
|
from watcherclient import client as wc
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon
|
import horizon
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@ import logging
|
|||||||
|
|
||||||
from django.template.defaultfilters import title # noqa
|
from django.template.defaultfilters import title # noqa
|
||||||
from django import urls
|
from django import urls
|
||||||
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
from django.utils.translation import ngettext_lazy
|
||||||
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 ungettext_lazy
|
|
||||||
import horizon.exceptions
|
import horizon.exceptions
|
||||||
import horizon.messages
|
import horizon.messages
|
||||||
import horizon.tables
|
import horizon.tables
|
||||||
@ -55,7 +55,7 @@ class ArchiveActionPlan(horizon.tables.DeleteAction):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def action_present(count):
|
def action_present(count):
|
||||||
return ungettext_lazy(
|
return ngettext_lazy(
|
||||||
u"Archive Action Plan",
|
u"Archive Action Plan",
|
||||||
u"Archive Action Plans",
|
u"Archive Action Plans",
|
||||||
count
|
count
|
||||||
@ -63,7 +63,7 @@ class ArchiveActionPlan(horizon.tables.DeleteAction):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def action_past(count):
|
def action_past(count):
|
||||||
return ungettext_lazy(
|
return ngettext_lazy(
|
||||||
u"Action Plan archived",
|
u"Action Plan archived",
|
||||||
u"Action Plans archived",
|
u"Action Plans archived",
|
||||||
count
|
count
|
||||||
@ -81,7 +81,7 @@ class StartActionPlan(horizon.tables.BatchAction):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def action_present(count):
|
def action_present(count):
|
||||||
return ungettext_lazy(
|
return ngettext_lazy(
|
||||||
u"Start Action Plan",
|
u"Start Action Plan",
|
||||||
u"Start Action Plans",
|
u"Start Action Plans",
|
||||||
count
|
count
|
||||||
@ -89,7 +89,7 @@ class StartActionPlan(horizon.tables.BatchAction):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def action_past(count):
|
def action_past(count):
|
||||||
return ungettext_lazy(
|
return ngettext_lazy(
|
||||||
u"Action Plan started",
|
u"Action Plan started",
|
||||||
u"Action Plans started",
|
u"Action Plans started",
|
||||||
count
|
count
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from horizon import tabs
|
from horizon import tabs
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,16 +13,16 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.conf import urls
|
from django.urls import re_path
|
||||||
|
|
||||||
from watcher_dashboard.content.action_plans import views
|
from watcher_dashboard.content.action_plans import views
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
urls.url(r'^$',
|
re_path(r'^$',
|
||||||
views.IndexView.as_view(), name='index'),
|
views.IndexView.as_view(), name='index'),
|
||||||
urls.url(r'^(?P<action_plan_uuid>[^/]+)/detail$',
|
re_path(r'^(?P<action_plan_uuid>[^/]+)/detail$',
|
||||||
views.DetailView.as_view(), name='detail'),
|
views.DetailView.as_view(), name='detail'),
|
||||||
urls.url(r'^archive/$',
|
re_path(r'^archive/$',
|
||||||
views.ArchiveView.as_view(), name='archive'),
|
views.ArchiveView.as_view(), name='archive'),
|
||||||
]
|
]
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon.exceptions
|
import horizon.exceptions
|
||||||
from horizon import forms
|
from horizon import forms
|
||||||
import horizon.tables
|
import horizon.tables
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon
|
import horizon
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@ import logging
|
|||||||
|
|
||||||
from django.template.defaultfilters import title # noqa
|
from django.template.defaultfilters import title # noqa
|
||||||
from django import urls
|
from django import urls
|
||||||
|
from django.utils.translation import gettext_lazy as _
|
||||||
from django.utils.translation import pgettext_lazy
|
from django.utils.translation import pgettext_lazy
|
||||||
from django.utils.translation import ugettext_lazy as _
|
|
||||||
import horizon.exceptions
|
import horizon.exceptions
|
||||||
import horizon.messages
|
import horizon.messages
|
||||||
import horizon.tables
|
import horizon.tables
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from horizon import tabs
|
from horizon import tabs
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,14 +13,14 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.conf import urls
|
from django.urls import re_path
|
||||||
|
|
||||||
from watcher_dashboard.content.actions import views
|
from watcher_dashboard.content.actions import views
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
urls.url(r'^$',
|
re_path(r'^$',
|
||||||
views.IndexView.as_view(), name='index'),
|
views.IndexView.as_view(), name='index'),
|
||||||
urls.url(r'^(?P<action_uuid>[^/]+)/detail$',
|
re_path(r'^(?P<action_uuid>[^/]+)/detail$',
|
||||||
views.DetailView.as_view(), name='detail'),
|
views.DetailView.as_view(), name='detail'),
|
||||||
]
|
]
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
import collections
|
import collections
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon.exceptions
|
import horizon.exceptions
|
||||||
import horizon.tables
|
import horizon.tables
|
||||||
import horizon.tabs
|
import horizon.tabs
|
||||||
|
@ -20,7 +20,7 @@ import logging
|
|||||||
|
|
||||||
from django.core import exceptions as core_exc
|
from django.core import exceptions as core_exc
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from horizon import exceptions
|
from horizon import exceptions
|
||||||
from horizon import forms
|
from horizon import forms
|
||||||
from horizon import messages
|
from horizon import messages
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon
|
import horizon
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from django.utils.translation import ungettext_lazy
|
from django.utils.translation import ngettext_lazy
|
||||||
import horizon.exceptions
|
import horizon.exceptions
|
||||||
import horizon.messages
|
import horizon.messages
|
||||||
import horizon.tables
|
import horizon.tables
|
||||||
@ -49,7 +49,7 @@ class LaunchAudit(horizon.tables.BatchAction):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def action_present(count):
|
def action_present(count):
|
||||||
return ungettext_lazy(
|
return ngettext_lazy(
|
||||||
"Launch Audit",
|
"Launch Audit",
|
||||||
"Launch Audits",
|
"Launch Audits",
|
||||||
count
|
count
|
||||||
@ -57,7 +57,7 @@ class LaunchAudit(horizon.tables.BatchAction):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def action_past(count):
|
def action_past(count):
|
||||||
return ungettext_lazy(
|
return ngettext_lazy(
|
||||||
"Launched Audit",
|
"Launched Audit",
|
||||||
"Launched Audits",
|
"Launched Audits",
|
||||||
count
|
count
|
||||||
@ -76,7 +76,7 @@ class ArchiveAuditTemplates(horizon.tables.DeleteAction):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def action_present(count):
|
def action_present(count):
|
||||||
return ungettext_lazy(
|
return ngettext_lazy(
|
||||||
"Archive Template",
|
"Archive Template",
|
||||||
"Archive Templates",
|
"Archive Templates",
|
||||||
count
|
count
|
||||||
@ -84,7 +84,7 @@ class ArchiveAuditTemplates(horizon.tables.DeleteAction):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def action_past(count):
|
def action_past(count):
|
||||||
return ungettext_lazy(
|
return ngettext_lazy(
|
||||||
"Archived Template",
|
"Archived Template",
|
||||||
"Archived Templates",
|
"Archived Templates",
|
||||||
count
|
count
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from horizon import tabs
|
from horizon import tabs
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,15 +13,15 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.conf import urls
|
from django.urls import re_path
|
||||||
|
|
||||||
from watcher_dashboard.content.audit_templates import views
|
from watcher_dashboard.content.audit_templates import views
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
urls.url(r'^$', views.IndexView.as_view(), name='index'),
|
re_path(r'^$', views.IndexView.as_view(), name='index'),
|
||||||
urls.url(r'^create/$', views.CreateView.as_view(), name='create'),
|
re_path(r'^create/$', views.CreateView.as_view(), name='create'),
|
||||||
urls.url(r'^(?P<audit_template_uuid>[^/]+)/detail$',
|
re_path(r'^(?P<audit_template_uuid>[^/]+)/detail$',
|
||||||
views.DetailView.as_view(),
|
views.DetailView.as_view(),
|
||||||
name='detail'),
|
name='detail'),
|
||||||
]
|
]
|
||||||
|
@ -17,7 +17,7 @@ import json
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from django.urls import reverse_lazy
|
from django.urls import reverse_lazy
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon.exceptions
|
import horizon.exceptions
|
||||||
from horizon import forms
|
from horizon import forms
|
||||||
import horizon.tables
|
import horizon.tables
|
||||||
|
@ -19,7 +19,7 @@ Forms for starting Watcher Audits.
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
from horizon import exceptions
|
from horizon import exceptions
|
||||||
from horizon import forms
|
from horizon import forms
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon
|
import horizon
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
from django import shortcuts
|
from django import shortcuts
|
||||||
from django.template.defaultfilters import title # noqa
|
from django.template.defaultfilters import title # noqa
|
||||||
from django import urls
|
from django import urls
|
||||||
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
from django.utils.translation import ngettext_lazy
|
||||||
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 ungettext_lazy
|
|
||||||
import horizon.exceptions
|
import horizon.exceptions
|
||||||
import horizon.messages
|
import horizon.messages
|
||||||
import horizon.tables
|
import horizon.tables
|
||||||
@ -88,7 +88,7 @@ class ArchiveAudits(horizon.tables.DeleteAction):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def action_present(count):
|
def action_present(count):
|
||||||
return ungettext_lazy(
|
return ngettext_lazy(
|
||||||
"Archive Audit",
|
"Archive Audit",
|
||||||
"Archive Audits",
|
"Archive Audits",
|
||||||
count
|
count
|
||||||
@ -96,7 +96,7 @@ class ArchiveAudits(horizon.tables.DeleteAction):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def action_past(count):
|
def action_past(count):
|
||||||
return ungettext_lazy(
|
return ngettext_lazy(
|
||||||
"Archived Audit",
|
"Archived Audit",
|
||||||
"Archived Audits",
|
"Archived Audits",
|
||||||
count
|
count
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from horizon import tabs
|
from horizon import tabs
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,16 +13,16 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.conf import urls
|
from django.urls import re_path
|
||||||
|
|
||||||
from watcher_dashboard.content.audits import views
|
from watcher_dashboard.content.audits import views
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
urls.url(r'^$',
|
re_path(r'^$',
|
||||||
views.IndexView.as_view(), name='index'),
|
views.IndexView.as_view(), name='index'),
|
||||||
urls.url(r'^create/$',
|
re_path(r'^create/$',
|
||||||
views.CreateView.as_view(), name='create'),
|
views.CreateView.as_view(), name='create'),
|
||||||
urls.url(r'^(?P<audit_uuid>[^/]+)/detail$',
|
re_path(r'^(?P<audit_uuid>[^/]+)/detail$',
|
||||||
views.DetailView.as_view(), name='detail'),
|
views.DetailView.as_view(), name='detail'),
|
||||||
]
|
]
|
||||||
|
@ -17,7 +17,7 @@ import logging
|
|||||||
|
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.urls import reverse_lazy
|
from django.urls import reverse_lazy
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon.exceptions
|
import horizon.exceptions
|
||||||
from horizon import forms
|
from horizon import forms
|
||||||
import horizon.tables
|
import horizon.tables
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon
|
import horizon
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.template.defaultfilters import title # noqa
|
from django.template.defaultfilters import title # noqa
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon.exceptions
|
import horizon.exceptions
|
||||||
import horizon.messages
|
import horizon.messages
|
||||||
import horizon.tables
|
import horizon.tables
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from horizon import tabs
|
from horizon import tabs
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,14 +13,14 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.conf import urls
|
from django.urls import re_path
|
||||||
|
|
||||||
from watcher_dashboard.content.goals import views
|
from watcher_dashboard.content.goals import views
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
urls.url(r'^$',
|
re_path(r'^$',
|
||||||
views.IndexView.as_view(), name='index'),
|
views.IndexView.as_view(), name='index'),
|
||||||
urls.url(r'^(?P<goal_uuid>[^/]+)/detail$',
|
re_path(r'^(?P<goal_uuid>[^/]+)/detail$',
|
||||||
views.DetailView.as_view(), name='detail'),
|
views.DetailView.as_view(), name='detail'),
|
||||||
]
|
]
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon.exceptions
|
import horizon.exceptions
|
||||||
import horizon.tables
|
import horizon.tables
|
||||||
import horizon.tabs
|
import horizon.tabs
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon
|
import horizon
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon.exceptions
|
import horizon.exceptions
|
||||||
import horizon.messages
|
import horizon.messages
|
||||||
import horizon.tables
|
import horizon.tables
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from horizon import tabs
|
from horizon import tabs
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,14 +13,14 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.conf import urls
|
from django.urls import re_path
|
||||||
|
|
||||||
from watcher_dashboard.content.strategies import views
|
from watcher_dashboard.content.strategies import views
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
urls.url(r'^$',
|
re_path(r'^$',
|
||||||
views.IndexView.as_view(), name='index'),
|
views.IndexView.as_view(), name='index'),
|
||||||
urls.url(r'^(?P<strategy_uuid>[^/]+)/detail$',
|
re_path(r'^(?P<strategy_uuid>[^/]+)/detail$',
|
||||||
views.DetailView.as_view(), name='detail'),
|
views.DetailView.as_view(), name='detail'),
|
||||||
]
|
]
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
import horizon.exceptions
|
import horizon.exceptions
|
||||||
import horizon.tables
|
import horizon.tables
|
||||||
import horizon.tabs
|
import horizon.tabs
|
||||||
|
@ -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.utils.translation import ugettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
# The slug of the panel group to be added to HORIZON_CONFIG. Required.
|
# The slug of the panel group to be added to HORIZON_CONFIG. Required.
|
||||||
PANEL_GROUP = 'watcher'
|
PANEL_GROUP = 'watcher'
|
||||||
|
@ -12,8 +12,9 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from django.conf import urls
|
from django.conf import urls
|
||||||
|
from django.urls import re_path
|
||||||
import openstack_dashboard.urls
|
import openstack_dashboard.urls
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
urls.url(r'', urls.include(openstack_dashboard.urls))
|
re_path(r'', urls.include(openstack_dashboard.urls))
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user