Fixed #25847 -- Made User.is_(anonymous|authenticated) properties.

This commit is contained in:
Jeremy Lainé 2016-04-02 13:18:26 +02:00 committed by Tim Graham
parent c16b9dd8e0
commit c1aec0feda
27 changed files with 238 additions and 93 deletions

View file

@ -256,7 +256,7 @@ given view by setting the ``HttpRequest``s ``exception_reporter_filter``
attribute::
def my_view(request):
if request.user.is_authenticated():
if request.user.is_authenticated:
request.exception_reporter_filter = CustomExceptionReporterFilter()
...