mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Make invited user model inherit from JSONModel
This is more consistent, and less fiddly that always having to call it with a dictionary expansion.
This commit is contained in:
@@ -18,6 +18,7 @@ class JSONModel():
|
||||
def __getattr__(self, attr):
|
||||
if attr in self.ALLOWED_PROPERTIES:
|
||||
return self._dict[attr]
|
||||
return
|
||||
raise AttributeError('`{}` is not a {} attribute'.format(
|
||||
attr,
|
||||
self.__class__.__name__.lower(),
|
||||
|
||||
Reference in New Issue
Block a user