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

Replace render_to_response() calls with render() #118

Merged

Conversation

JocelynDelalande
Copy link
Collaborator

As render_to_response() is pending deprecation (and long to write ;-), see

https://docs.djangoproject.com/en/1.11/topics/http/shortcuts/#render-to-response

@jbgury jbgury merged commit 4a3bf2c into libreosteo:develop Mar 2, 2018
@jbgury
Copy link
Contributor

jbgury commented Mar 2, 2018

Je vais devoir revenir en arrière sur cette modification, il s'agit du raccourci render_to_response(), mais le mixin : https://docs.djangoproject.com/en/1.11/ref/class-based-views/mixins-simple/#django.views.generic.base.TemplateResponseMixin a uniquement la méthode render_to_response() et non render()

@jbgury
Copy link
Contributor

jbgury commented Mar 2, 2018

Reverted

@JocelynDelalande
Copy link
Collaborator Author

oops, pardon, je referais la PR pour ne changer que les appels « standalone » en dehors du mixin.

@JocelynDelalande JocelynDelalande deleted the jd-remove-render-to-response branch March 2, 2018 23:16
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