Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix trans template tag error on admin #3564

Merged
merged 1 commit into from Oct 30, 2015
Merged

Conversation

mcastle
Copy link
Contributor

@mcastle mcastle commented Oct 29, 2015

Trans template tag requires {% load i18n %} at top of template.

Trans template tag requires `{% load i18n %}` at top of template.
@mcastle mcastle changed the title Fix trans template tag error Fix trans template tag error on admin Oct 29, 2015
@jpadilla
Copy link
Member

jpadilla commented Oct 29, 2015

@mcastle thanks! What's the error that not having this raises?

@mcastle
Copy link
Contributor Author

mcastle commented Oct 29, 2015

No prob and thanks for another great release! The error, caused by {% trans "Filters" %} at line 117, is:

TemplateSyntaxError ...

Invalid block tag: 'trans', expected 'elif', 'else' or 'endif'

@jpadilla jpadilla added this to the 3.3.1 Release milestone Oct 30, 2015
jpadilla added a commit that referenced this pull request Oct 30, 2015
Fix trans template tag error on admin
@jpadilla jpadilla merged commit 08e4a98 into encode:master Oct 30, 2015
3 checks passed
nikolas added a commit to ccnmtl/brownfield_django that referenced this pull request Feb 10, 2016
Should fix this error in rolf:
site-packages/rest_framework/templates/rest_framework/admin.html:
Invalid block tag: 'trans', expected 'elif', 'else' or 'endif'

https://rolf.ccnmtl.columbia.edu/push/24072/
encode/django-rest-framework#3564
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants