From 6c742748f0071a9546761b69d896cf08830b99b8 Mon Sep 17 00:00:00 2001 From: Javier Romero Castro Date: Thu, 9 Nov 2023 15:00:30 +0100 Subject: [PATCH] model: avoid setting value on getter * closes https://github.com/zenodo/rdm-project/issues/521 --- invenio_accounts/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invenio_accounts/models.py b/invenio_accounts/models.py index db81bf71..58a405aa 100644 --- a/invenio_accounts/models.py +++ b/invenio_accounts/models.py @@ -239,7 +239,7 @@ def preferences(self): if self._preferences is None: return None elif not isinstance(self._preferences, UserPreferenceDict): - self._preferences = UserPreferenceDict(**self._preferences) + return UserPreferenceDict(**self._preferences) return self._preferences