From ce50e972971b06bdc2f0983d73059054388573c8 Mon Sep 17 00:00:00 2001 From: lmortimer Date: Thu, 15 Oct 2015 09:52:08 +1300 Subject: [PATCH] Namespace templatetags so they don't clash with existing application templatetags. --- silk/request_filters.py | 2 +- silk/templates/silk/base/root_base.html | 4 ++-- silk/templates/silk/inclusion/profile_menu.html | 2 +- silk/templates/silk/inclusion/profile_summary.html | 2 +- silk/templates/silk/inclusion/request_menu.html | 2 +- silk/templates/silk/inclusion/request_summary.html | 2 +- silk/templates/silk/inclusion/root_menu.html | 2 +- silk/templates/silk/profile_detail.html | 6 +++--- silk/templates/silk/profiling.html | 2 +- silk/templates/silk/request.html | 4 ++-- silk/templates/silk/requests.html | 2 +- silk/templates/silk/sql.html | 6 +++--- silk/templates/silk/sql_detail.html | 6 +++--- silk/templates/silk/summary.html | 2 +- silk/templatetags/{filters.py => silk_filters.py} | 0 silk/templatetags/{inclusion.py => silk_inclusion.py} | 0 silk/templatetags/{nav.py => silk_nav.py} | 0 17 files changed, 22 insertions(+), 22 deletions(-) rename silk/templatetags/{filters.py => silk_filters.py} (100%) rename silk/templatetags/{inclusion.py => silk_inclusion.py} (100%) rename silk/templatetags/{nav.py => silk_nav.py} (100%) diff --git a/silk/request_filters.py b/silk/request_filters.py index 6b99b4a1..3cdd28c5 100644 --- a/silk/request_filters.py +++ b/silk/request_filters.py @@ -8,7 +8,7 @@ from django.utils import timezone from silk.profiling.dynamic import _get_module -from silk.templatetags.filters import _silk_date_time +from silk.templatetags.silk_filters import _silk_date_time logger = logging.getLogger('silk') diff --git a/silk/templates/silk/base/root_base.html b/silk/templates/silk/base/root_base.html index 4e429215..1ae44d16 100644 --- a/silk/templates/silk/base/root_base.html +++ b/silk/templates/silk/base/root_base.html @@ -1,6 +1,6 @@ {% extends "silk/base/base.html" %} -{% load nav %} -{% load inclusion %} +{% load silk_nav %} +{% load silk_inclusion %} {% load staticfiles %} {% block body_class %} diff --git a/silk/templates/silk/inclusion/profile_menu.html b/silk/templates/silk/inclusion/profile_menu.html index 4cefd25d..0ec7a1b6 100644 --- a/silk/templates/silk/inclusion/profile_menu.html +++ b/silk/templates/silk/inclusion/profile_menu.html @@ -1,4 +1,4 @@ -{% load nav %} +{% load silk_nav %}
{{ profile.start_time | silk_date_time }}
{% if profile.name %}{{ profile.name }}{% elif profile.func_name %}{{ profile.func_name }}{% endif %}
diff --git a/silk/templates/silk/inclusion/request_menu.html b/silk/templates/silk/inclusion/request_menu.html index 9868c742..6eb283d0 100644 --- a/silk/templates/silk/inclusion/request_menu.html +++ b/silk/templates/silk/inclusion/request_menu.html @@ -1,4 +1,4 @@ -{% load nav %} +{% load silk_nav %}
{{ silk_request.start_time | silk_date_time }}
{% if silk_request.response.status_code %}{{ silk_request.response.status_code }} {% endif %}{{ silk_request.method }}
diff --git a/silk/templates/silk/inclusion/root_menu.html b/silk/templates/silk/inclusion/root_menu.html index af2d1131..94fb3534 100644 --- a/silk/templates/silk/inclusion/root_menu.html +++ b/silk/templates/silk/inclusion/root_menu.html @@ -1,4 +1,4 @@ -{% load nav %} +{% load silk_nav %}