pinax-messages icon indicating copy to clipboard operation
pinax-messages copied to clipboard

AttributeError: 'WSGIRequest' object has no attribute 'user'

Open osnippet opened this issue 3 years ago • 0 comments

I am trying to fix this warning which randomly thrown in the console.

File ".../python3.9/site-packages/pinax/messages/context_processors.py", line 6, in user_messages
if request.user.is_authenticated:
AttributeError: 'WSGIRequest' object has no attribute 'user'

I tried different versions of Django (2.2 - 3.2) but the problem still showing up. Desktop

  • OS: [Linux Debian]
  • Version [pinax-messages==3.0.0]

Additional context I follow the documentation everything works great except from that annoying warning I get while running dev server.

osnippet avatar May 02 '21 09:05 osnippet