Skip to content

Commit

Permalink
Rename countries_tags to just countries
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyChris committed Jul 21, 2015
1 parent c8f41e3 commit 531609c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -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 }}

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions django_countries/tests/test_tags.py
Expand Up @@ -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'}))
Expand Down

0 comments on commit 531609c

Please sign in to comment.