From 9a6c6644f3cc7bd4c52491b1e1675909948bcdb7 Mon Sep 17 00:00:00 2001 From: Vincent Post Date: Fri, 7 Aug 2020 20:45:54 +0200 Subject: Revert "Fixed recursion while deepcopy(Account)" This reverts commit 74aa9fa461302441ddea3a87c3e0f938dc6bdc2b. --- accounts/models.py | 3 +-- 1 file changed, 1 insertion(+), 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'" % -- cgit v1.2.3-1-g7c22