-
Notifications
You must be signed in to change notification settings - Fork 776
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
Remove mock request object from jet.utils.get_model_queryset #115
Conversation
4 similar comments
Any reason why this is not being accepted? The mock request is breaking a lot of plugins that depend on request.user or request.session. |
Please, accept this! The mock request breaking a lot things here. |
@imdario merged, thanks for PR! @SalahAdDin that time I had to rewrite the whole project to merge PRs, so yes, it took long, but not it is rewritten already |
@f1nality Thanks man! |
Thanks @f1nality! |
jet.utils.get_model_queryset created a mock request using django.test.client.RequestFactory while the real request object was available in the calling function jet.templatetags.jet_tags' context variable.
This causes problems when we access to request's members added by middlewares, like request.user or request.session.