-
Notifications
You must be signed in to change notification settings - Fork 164
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
RequestContext is incorrectly delivered as request object when rendering a comment form/list in Django 1.10 #78
Comments
Hi! |
Hi, many thanks for the info, I've managed to get works with 1.10 with your suggestions |
Just removing the third parameter
This is because I think
Also,
|
Dont remove the parameter, just change it to |
I've fixed it slightly different in a243845 I doubt there is a need to pass the |
In Django 1.10, some parameters were removed from
render_to_string()
:So, the prototype looks like below.
But, the
render()
method inthreadedcomments_tags.py
'sRenderCommentFormNode
orRenderCommentListNode
class delivers context instance to therender_to_string()
as the third parameter, which should be a request object.Generally, it does not seem to cause errors, but sometimes it does. For my case,
AttributeError: 'RequestContext' object has no attribute 'META'
occurred when used with Python Social Auth (I'll attach full traceback at the end for reference).My problem was resolved by changing
context
tocontext.get('request')
inrender()
method or just removingcontext
from the method, but I'm not sure that is the correct fix.Traceback
The text was updated successfully, but these errors were encountered: