Add an (empty) profile for the anonymous user #115

Merged
gergely merged 1 commits from anonymous-profile into master 2018-07-26 20:00:20 +00:00

View File

@ -35,6 +35,15 @@ class AnonymousUser(BaseAnonymousUser):
return current_app.timezone
@property
def profile(self):
"""The profile of the anonymous user
Always evaluates to ``None``
"""
return None
@user_logged_in.connect
def login_handler(app, user): # pylint: disable=unused-argument