summaryrefslogtreecommitdiffstats
path: root/accounts/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/models.py')
-rw-r--r--accounts/models.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/accounts/models.py b/accounts/models.py
index 848a4cd..72c061d 100644
--- a/accounts/models.py
+++ b/accounts/models.py
@@ -51,8 +51,7 @@ class Account(UserMixin):
self._set_attribute('mail', new_mail)
def __getattr__(self, name):
- # https://stackoverflow.com/a/47300262
- if name[:2] != "__" and name in self.attributes:
+ if name in self.attributes:
return self.attributes[name]
raise AttributeError("'%s' object has no attribute '%s'" %