auth.models.AbstractBaseUser.is_anonymous

is_anonymous

Read-only attribute which is always False. This is a way of differentiating User and AnonymousUser objects. Generally, you should prefer using is_authenticated to this attribute.

Changed in Django 1.10:

In older versions, this was a method. Backwards-compatibility support for using it as a method will be removed in Django 2.0.

doc_Django
2016-10-09 18:34:16
Comments
Leave a Comment

Please login to continue.