From 531609c75231b793deb0f23bb870fe2d352eec24 Mon Sep 17 00:00:00 2001 From: Chris Beaven Date: Wed, 22 Jul 2015 08:51:53 +1200 Subject: [PATCH] Rename countries_tags to just countries --- README.rst | 2 +- .../templatetags/{countries_tags.py => countries.py} | 0 django_countries/tests/test_tags.py | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename django_countries/templatetags/{countries_tags.py => countries.py} (100%) diff --git a/README.rst b/README.rst index 409dc521..74eed12a 100644 --- a/README.rst +++ b/README.rst @@ -140,7 +140,7 @@ Template Tags If you have your country code stored in a different place than a `CountryField` you can use the template tag to get a `Country` object and have access to all of its properties: - {% load countries_tags %} + {% load countries %} {% get_country 'BR' as country %} {{ country.name }} diff --git a/django_countries/templatetags/countries_tags.py b/django_countries/templatetags/countries.py similarity index 100% rename from django_countries/templatetags/countries_tags.py rename to django_countries/templatetags/countries.py diff --git a/django_countries/tests/test_tags.py b/django_countries/tests/test_tags.py index a835bcb8..c8b5cc0a 100644 --- a/django_countries/tests/test_tags.py +++ b/django_countries/tests/test_tags.py @@ -5,8 +5,8 @@ class TestCountriesTags(TestCase): - TEMPLATE_COUNTRY = Template("{% load countries_tags %}{% get_country code as country %}{{ country }}") - TEMPLATE_NAME = Template("{% load countries_tags %}{% get_country code as country %}{{ country.name }}") + TEMPLATE_COUNTRY = Template("{% load countries %}{% get_country code as country %}{{ country }}") + TEMPLATE_NAME = Template("{% load countries %}{% get_country code as country %}{{ country.name }}") def test_country(self): rendered = self.TEMPLATE_COUNTRY.render(Context({'code': 'BR'}))