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

How can i stop get request when user is not authenticated. #66

Closed
amarpreetsaini opened this issue Apr 27, 2014 · 1 comment
Closed

Comments

@amarpreetsaini
Copy link

Even though in view i did not return anything without authentication but endless pagination plugin makes a get request that causes the current html to mix up with logout page.

@rizumu
Copy link

rizumu commented May 13, 2014

One idea is to put a conditional in your template that includes the endless pagination HTML and/or JS. {% if request.user.is_authenticated %}. Make sure you have the request context process setup: " "django.core.context_processors.request".

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

No branches or pull requests

2 participants