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

Django 1.9 (WIP) #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Django 1.9 (WIP) #7

wants to merge 3 commits into from

Conversation

lenaqr
Copy link
Owner

@lenaqr lenaqr commented Dec 21, 2015

No description provided.

Anthony Lu added 3 commits December 21, 2015 00:00
The generic_tag_compiler function was removed, as a part of a larger
refactoring of the template library. For now, just pull in the
definition of generic_tag_compiler from 1.8.
from django.template.base import generic_tag_compiler, TagHelperNode, Template
try:
from django.template.base import generic_tag_compiler, TagHelperNode, Template
except ImportError:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like this is a fine solution for now, but I think going forward unfortunately we're going to need a version check, and different code for each version with significant changes. In particular, backporting any changes when we're already trying to merge different versions of the code seems like it's just an impossible mess.

Also, I think it's probably better to do an explicit version check instead of try/except?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants