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

Fixed Django < 1.4 support in context processors. #211

Merged
merged 1 commit into from
Mar 9, 2014

Conversation

bmispelon
Copy link
Contributor

Prior to Django commit 60cf3f2f842b6e56132b8880c70acc87bd753c,
Django was using None as a sentinel value.

The existing code in place to support Django 1.3 would not actually work.

I would have added some tests with this pull request but couldn't figure out where to put them.

I couldn't find which versions of Django you're supporting either, but note that in 1.6, Django added __getitem__ and __setitem__ methods on LazyObject so if/when you drop support for older versions, you can use a plain SimpleLazyObject instead of your custom LazyDict.

Prior to Django commit 60cf3f2f842b6e56132b8880c70acc87bd753c,
Django was using None as a sentinel value.
omab added a commit that referenced this pull request Mar 9, 2014
Fixed Django < 1.4 support in context processors.
@omab omab merged commit 5682ad6 into omab:master Mar 9, 2014
@omab
Copy link
Owner

omab commented Mar 9, 2014

Thanks!

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