-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Get django-voting working with Django 1.11 #10
Conversation
…late.resolve_variable)
user = template.resolve_variable(self.user, context) | ||
objects = template.resolve_variable(self.objects, context) | ||
user = template.Variable(self.user).resolve(context) | ||
objects = template.Variable(self.object).resolve(context) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's objects
here, not object
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think i was working with a pre-release version of django1.11 if that's the case ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update it? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably just a typo, all the other ones are correct but for this one you forgot to add the s when you changed this code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - i've been away, just pushed this update to my fork.
What's the status on this? |
Project update: Move to Jazzband, or retire? #13 |
Support for 2.2, 3.0 and 3.1 is now in 1.0. Please reopen another PR if you're interested in contributing the other changes in this PR that are unrelated to compatibility. Thank you! |
Get django-voting working with Django 1.11 (which has deprecated template.resolve_variable).
NB - could do with a try / except to maintain compatibility with earlier django versions.