Add location metadata field for users
This commit is contained in:
parent
cc26eefd2f
commit
3de6b4a646
9 changed files with 68 additions and 10 deletions
|
@ -4,7 +4,11 @@ from collections import namedtuple
|
|||
from six import add_metaclass
|
||||
|
||||
|
||||
class User(namedtuple('User', ['uuid', 'username', 'email', 'given_name', 'family_name', 'company'])):
|
||||
USER_FIELDS = ['uuid', 'username', 'email', 'given_name',
|
||||
'family_name', 'company', 'location']
|
||||
|
||||
|
||||
class User(namedtuple('User', USER_FIELDS)):
|
||||
"""
|
||||
User represents a user.
|
||||
"""
|
||||
|
|
Reference in a new issue