AttributeError: 'customer' object has no attribute 'is_authenticated'

1,195 views
Skip to first unread message

Salima Begum

unread,
Apr 1, 2021, 1:03:36 PM4/1/21
to django...@googlegroups.com
Hi all,

How to solve this errors
```
AttributeError: 'customer' object has no attribute 'is_authenticated'
```

```
  AttributeError: 'customer' object has no attribute 'is_anonymous'  
```

How can I solve this above errors. Help me.

Thanks
~Salima

Mahendra

unread,
Apr 1, 2021, 2:44:28 PM4/1/21
to django...@googlegroups.com
I think given name is wrong Hlo do you have any idea posting form data?

Mahendra Yadav

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMSz6bkcDZeFhhStQeTOeLAst1kNA1xa%2BuVsd0sva1JA0P8kMw%40mail.gmail.com.

sebasti...@gmail.com

unread,
Apr 1, 2021, 3:43:42 PM4/1/21
to Django users
I think this must be wrong. Only User instance have a method is_authenticated. Here a example for views:

if request.user.is_authenticated:
   pass

Gabriel Araya Garcia

unread,
Apr 1, 2021, 9:37:17 PM4/1/21
to django...@googlegroups.com
Why you don't explain better your problem ? When appear that

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




Reply all
Reply to author
Forward
0 new messages