Add location metadata field for users

This commit is contained in:
Brad Ison 2018-02-02 17:56:50 -05:00
parent cc26eefd2f
commit 3de6b4a646
9 changed files with 68 additions and 10 deletions

View file

@ -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.
"""