From b3a4a330a4c5b40c0d107082d96d29e0c34f4e97 Mon Sep 17 00:00:00 2001 From: Fantomas42 Date: Thu, 12 Oct 2017 23:23:06 +0200 Subject: [PATCH] Rename zinnia.templates to zinnia.templating to avoid warning with the templates directory alongside --- zinnia/templatetags/zinnia.py | 2 +- zinnia/{templates.py => templating.py} | 0 zinnia/tests/{test_templates.py => test_templating.py} | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename zinnia/{templates.py => templating.py} (100%) rename zinnia/tests/{test_templates.py => test_templating.py} (95%) diff --git a/zinnia/templatetags/zinnia.py b/zinnia/templatetags/zinnia.py index d45e3f60e..9d86c22ce 100644 --- a/zinnia/templatetags/zinnia.py +++ b/zinnia/templatetags/zinnia.py @@ -40,7 +40,7 @@ from ..models.entry import Entry from ..settings import ENTRY_LOOP_TEMPLATES from ..settings import PROTOCOL -from ..templates import loop_template_list +from ..templating import loop_template_list WIDONT_REGEXP = re.compile( diff --git a/zinnia/templates.py b/zinnia/templating.py similarity index 100% rename from zinnia/templates.py rename to zinnia/templating.py diff --git a/zinnia/tests/test_templates.py b/zinnia/tests/test_templating.py similarity index 95% rename from zinnia/tests/test_templates.py rename to zinnia/tests/test_templating.py index 295c12a15..0651d804e 100644 --- a/zinnia/tests/test_templates.py +++ b/zinnia/tests/test_templating.py @@ -1,8 +1,8 @@ """Test cases for Zinnia Template""" from django.test import TestCase -from zinnia.templates import append_position -from zinnia.templates import loop_template_list +from zinnia.templating import append_position +from zinnia.templating import loop_template_list class TemplateTestCase(TestCase):