def get_init_anonymous_user(User):
 kwargs = {User.USERNAME_FIELD: guardian_settings.ANONYMOUS_USER_NAME}
 user = User(**kwargs)
 user.set_unusable_password()
 return user

def get_init_anonymous_user ( User ) : kwargs = { User . USERNAME_FIELD : guardian_settings . ANONYMOUS_USER_NAME } user = User ( ** kwargs ) user . set_unusable_password ( ) return user
returns user model instance that would be referenced by guardian when permissions are checked against users that havent signed into the system .