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

Get django-voting working with Django 1.11 #10

Closed
wants to merge 5 commits into from

Conversation

stephendwolff
Copy link

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.

@PiDelport
Copy link
Member

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)
Copy link

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.

Copy link
Author

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 ...

Copy link

Choose a reason for hiding this comment

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

Can you update it? :)

Copy link

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.

Copy link
Author

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.

@seirl
Copy link

seirl commented Jul 11, 2017

What's the status on this?

@PiDelport
Copy link
Member

Project update: Move to Jazzband, or retire? #13

@jezdez
Copy link
Member

jezdez commented Mar 10, 2021

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!

@jezdez jezdez closed this Mar 10, 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.

5 participants