diff options
author | Vincent Post <cent@spline.de> | 2020-08-07 20:45:54 +0200 |
---|---|---|
committer | Vincent Post <cent@spline.de> | 2020-08-07 20:45:54 +0200 |
commit | 40c6864a5eab142b7177ca443cc6fa6cf309b237 (patch) | |
tree | 9384a9e0ba28de5ab3fe776b0a89336da8f76071 | |
parent | ec179fa9913a07d6ba4902366ec27b87895a4c1a (diff) | |
download | web-40c6864a5eab142b7177ca443cc6fa6cf309b237.tar.gz web-40c6864a5eab142b7177ca443cc6fa6cf309b237.tar.bz2 web-40c6864a5eab142b7177ca443cc6fa6cf309b237.zip |
Revert "Fixed recursion while deepcopy(Account)"
This reverts commit 74aa9fa461302441ddea3a87c3e0f938dc6bdc2b.
-rw-r--r-- | accounts/models.py | 3 |
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'" % |