Skip to content

Commit

Permalink
model: avoid setting value on getter
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcastro2 committed Nov 9, 2023
1 parent 05657e0 commit 60a0094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 60a0094

Please sign in to comment.