2👍
✅
You do not need to check is_authenticated()
. Non-authenticated users will have an AnonymousUser
object in request.user
, and that type of object should respond False
to all is_staff
checks without exception.
- [Answered ]-Does django mess up with python's datetime?
- [Answered ]-Charfield null errors
- [Answered ]-How to GET the query parameters in Django-Tastypie
- [Answered ]-How to add headers and footers with django-wkhtmltopdf in my class based views with PDFTemplateResponse
Source:stackexchange.com