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.5 support #27

Merged
merged 2 commits into from Mar 8, 2013
Merged

Conversation

drillbits
Copy link
Contributor

Put quotes around the first parameter of url template tags

The first parameter do not allow unquoted string since Django 1.5.

Add context_keys to TemplatesGenerator

MODEL_NAME_archive_year.html uses 'year' the context of YearArchiveView.

But, on Django 1.5, it is returned as a date object.

So the template must use 'year.year'.

In order to maintain backward compatibility, add context_keys and set proper key depending on the version of Django.

MODEL_NAME_archive_year.html uses 'year' the context of YearArchiveView.

But, on Django 1.5, it is returned as a date object.

So the template must use 'year.year'.

In order to maintain backward compatibility, add context_keys and
set proper key depending on the version of Django.
@modocache
Copy link
Owner

Thanks very much for your contribution! I will release this to PyPI as soon as possible, until then please use this SHA.

Currently the CI only tests Python 2.7 & Django 1.4, but I plan on adding tests which use Django 1.5. Any help would be very much appreciated! See: #23

modocache added a commit that referenced this pull request Mar 8, 2013
@modocache modocache merged commit 0c66192 into modocache:develop Mar 8, 2013
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.

None yet

2 participants