mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Fixed #25847 -- Made User.is_(anonymous|authenticated) properties.
This commit is contained in:
parent
c16b9dd8e0
commit
c1aec0feda
27 changed files with 238 additions and 93 deletions
|
@ -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()
|
||||
...
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue