Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug: AttributeError at /follow/username/ 'AnonymousUser' object has no attribute 'userprofile' #1717

@DonnieBLT

Description

@DonnieBLT

File "/app//python/lib/python3.11/site-packages/sentry_sdk/integrations/django/views.py", line 84, in sentry_wrapped_callback
return callback(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/website/views.py", line 2000, in follow_user
list_userfrof = request.user.userprofile.follows.all()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/python/lib/python3.11/site-packages/django/utils/functional.py", line 268, in inner
return func(_wrapped, *args)
^^^^^^^^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions