From c1aec0feda73ede09503192a66f973598aef901d Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Sat, 2 Apr 2016 13:18:26 +0200 Subject: Fixed #25847 -- Made User.is_(anonymous|authenticated) properties. --- docs/howto/error-reporting.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/howto/error-reporting.txt') diff --git a/docs/howto/error-reporting.txt b/docs/howto/error-reporting.txt index 9ae194d4e0..d07404a1e9 100644 --- a/docs/howto/error-reporting.txt +++ b/docs/howto/error-reporting.txt @@ -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() ... -- cgit v1.3