Remove 'load url from future'
Use staticfiles template tag instead of the obsolete 'load url from future'. Also fix unit tests. Change-Id: Ifc36d5ca69db298bb74e2519731cd1a138bdc391 Story: 2001059 Task: 4663
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
{% extends "horizon/common/_modal_form.html" %}
|
{% extends "horizon/common/_modal_form.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load url from future %}
|
|
||||||
|
|
||||||
{% block form_id %}edit_alarm_form{% endblock %}
|
{% block form_id %}edit_alarm_form{% endblock %}
|
||||||
{% block form_action %}{{ action_url }}{% endblock %}
|
{% block form_action %}{{ action_url }}{% endblock %}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load url from future %}
|
|
||||||
{% load compress %}
|
{% load compress %}
|
||||||
|
|
||||||
{% block title %}{% trans 'Alarm Definitions' %}{% endblock %}
|
{% block title %}{% trans 'Alarm Definitions' %}{% endblock %}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load url from future %}
|
|
||||||
<div ng-controller="alarmNotificationFieldController as ctrl" ng-init="ctrl.init('{{ data }}')">
|
<div ng-controller="alarmNotificationFieldController as ctrl" ng-init="ctrl.init('{{ data }}')">
|
||||||
|
|
||||||
<div ng-if="ctrl.empty">
|
<div ng-if="ctrl.empty">
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{% extends "horizon/common/_modal_form.html" %}
|
{% extends "horizon/common/_modal_form.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load url from future %}
|
|
||||||
|
|
||||||
|
|
||||||
{% block modal-body %}
|
{% block modal-body %}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load url from future %}
|
|
||||||
|
|
||||||
{% block title %}{% trans 'Alarms' %}{% endblock %}
|
{% block title %}{% trans 'Alarms' %}{% endblock %}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load url from future %}
|
|
||||||
|
|
||||||
{% block title %}{% trans 'Alarm History' %}{% endblock %}
|
{% block title %}{% trans 'Alarm History' %}{% endblock %}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load url from future %}
|
|
||||||
|
|
||||||
{% block title %}{% trans 'Measurements for Alarms' %}{% endblock %}
|
{% block title %}{% trans 'Measurements for Alarms' %}{% endblock %}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{% extends "horizon/common/_modal_form.html" %}
|
{% extends "horizon/common/_modal_form.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load url from future %}
|
|
||||||
|
|
||||||
{% block form_id %}create_notif_method_form{% endblock %}
|
{% block form_id %}create_notif_method_form{% endblock %}
|
||||||
{% block form_action %}{{ action_url }}{% endblock %}
|
{% block form_action %}{{ action_url }}{% endblock %}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{% extends "horizon/common/_modal_form.html" %}
|
{% extends "horizon/common/_modal_form.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load url from future %}
|
|
||||||
|
|
||||||
{% block form_id %}detail_notif_method_form{% endblock %}
|
{% block form_id %}detail_notif_method_form{% endblock %}
|
||||||
{% block form_action %}{% url 'horizon:project:monitoring_notifications:methods:detail' notification_method.id %}{% endblock %}
|
{% block form_action %}{% url 'horizon:project:monitoring_notifications:methods:detail' notification_method.id %}{% endblock %}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{% extends "horizon/common/_modal_form.html" %}
|
{% extends "horizon/common/_modal_form.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load url from future %}
|
|
||||||
|
|
||||||
{% block form_id %}edit_method_form{% endblock %}
|
{% block form_id %}edit_method_form{% endblock %}
|
||||||
{% block form_action %}{{ action_url }}{% endblock %}
|
{% block form_action %}{{ action_url }}{% endblock %}
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
{% block page_header %}
|
{% block page_header %}
|
||||||
{% include 'horizon/common/_page_header.html' with title=_("Notifications") %}
|
{% include 'horizon/common/_page_header.html' with title=_("Notifications") %}
|
||||||
{% endblock page_header %}
|
{% endblock page_header %}
|
||||||
{% load url from future %}
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
{{ table.render }}
|
{{ table.render }}
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
{% block page_header %}
|
{% block page_header %}
|
||||||
{% include 'horizon/common/_page_header.html' with title=_("Monitoring") %}
|
{% include 'horizon/common/_page_header.html' with title=_("Monitoring") %}
|
||||||
{% endblock page_header %}
|
{% endblock page_header %}
|
||||||
{% load url from future %}
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div style="padding: 3px;">
|
<div style="padding: 3px;">
|
||||||
{% if grafana_url %}
|
{% if grafana_url %}
|
||||||
|
|||||||
@@ -12,10 +12,10 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import unittest
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from django.core.handlers import wsgi
|
from django.core.handlers import wsgi
|
||||||
from django.utils import unittest
|
|
||||||
|
|
||||||
from monitoring.test.test_data import utils as test_data_utils
|
from monitoring.test.test_data import utils as test_data_utils
|
||||||
from openstack_dashboard.test import helpers as openstack_dashboard_helpers
|
from openstack_dashboard.test import helpers as openstack_dashboard_helpers
|
||||||
|
|||||||
@@ -26,9 +26,9 @@ TEMPLATE_DIRS = (
|
|||||||
os.path.join(TEST_DIR, 'templates'),
|
os.path.join(TEST_DIR, 'templates'),
|
||||||
)
|
)
|
||||||
|
|
||||||
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
|
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + [
|
||||||
'openstack_dashboard.context_processors.openstack',
|
'openstack_dashboard.context_processors.openstack',
|
||||||
)
|
]
|
||||||
|
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = (
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
|
|||||||
Reference in New Issue
Block a user