Skip to content
Snippets Groups Projects
Commit 0c84acae authored by Robert Bechara's avatar Robert Bechara
Browse files

added user.py

parent 9c748c1e
Branches
No related merge requests found
class User:
def __init__(self, user_id):
self.user_id = user_id
@property
def username(self):
return self.username
@property
def is_authenticated(self):
return True
@property
def is_active(self):
return True
@property
def is_anonymous(self):
return False
def get_id(self):
return self.user_id
def __repr__(self):
return 'user_id {}'.format(self.user_id)
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment