Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't mark a TemplateSyntaxError in flatpages as being translatable.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14127 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 791cc62d4c8f5627b5616a50ab9d91d59cd601e9 1 parent b12c739
@alex alex authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 django/contrib/flatpages/templatetags/flatpages.py
View
5 django/contrib/flatpages/templatetags/flatpages.py
@@ -1,7 +1,6 @@
from django import template
-from django.contrib.flatpages.models import FlatPage
-from django.utils.translation import ugettext as _
from django.conf import settings
+from django.contrib.flatpages.models import FlatPage
register = template.Library()
@@ -67,7 +66,7 @@ def get_flatpages(parser, token):
{% get_flatpages '/about/' for someuser as about_pages %}
"""
bits = token.split_contents()
- syntax_message = _("%(tag_name)s expects a syntax of %(tag_name)s "
+ syntax_message = ("%(tag_name)s expects a syntax of %(tag_name)s "
"['url_starts_with'] [for user] as context_name" %
dict(tag_name=bits[0]))
# Must have at 3-6 bits in the tag
Please sign in to comment.
Something went wrong with that request. Please try again.