Skip to content

Conversation

@aroxby
Copy link

@aroxby aroxby commented Aug 27, 2014

I know there is a pull request for this already, but I have a more concise fix that is also backwards compatible.

I have also patched the tests to work with Django 1.6/1.7 and included a test for my fix. This tests that my fix accomplishes the apparent intended behavior of your original version.

@gusdan
Copy link
Owner

gusdan commented Sep 18, 2014

I added support for Django 1.7 and added you test. But i'm afraid to use cached_property instead of thread local in django less than 1.7. Thread safe it's dangerous territory and it can be broken in some situations. So my changes use thread local for django < 1.7 and self for 1.7.

b8f8969

@gusdan gusdan closed this Sep 18, 2014
@aroxby
Copy link
Author

aroxby commented Sep 18, 2014

That's great. Thank you!

matteiuspi pushed a commit to CashStar/django-elasticache that referenced this pull request Mar 19, 2021
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