summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Post <cent@spline.de>2020-08-07 20:45:54 +0200
committerJonah BrĂ¼chert <jbb@kaidan.im>2023-05-22 00:28:12 +0200
commit9a6c6644f3cc7bd4c52491b1e1675909948bcdb7 (patch)
tree7f971d9621ec20c1143ecbd63036f52242bfd7c8
parent12c8e9a16c5cf0addcf8e8f8cce76aac110c16dd (diff)
downloadweb-9a6c6644f3cc7bd4c52491b1e1675909948bcdb7.tar.gz
web-9a6c6644f3cc7bd4c52491b1e1675909948bcdb7.tar.bz2
web-9a6c6644f3cc7bd4c52491b1e1675909948bcdb7.zip
Revert "Fixed recursion while deepcopy(Account)"
This reverts commit 74aa9fa461302441ddea3a87c3e0f938dc6bdc2b.
-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'" %