Skip to content

Commit

Permalink
Lazily fetch django user only on first load
Browse files Browse the repository at this point in the history
  • Loading branch information
esoergel committed Nov 30, 2023
1 parent 1b67098 commit 1b80ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corehq/apps/users/user_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def lazy_init(cls, couch_user, domain):
domain=domain,
defaults={
'data': raw_user_data,
'django_user': couch_user.get_django_user(),
'django_user': couch_user.get_django_user,
'profile_id': profile_id,
}
)
Expand All @@ -46,7 +46,7 @@ def save(self):
domain=self.domain,
defaults={
'data': self._local_to_user,
'django_user': self._couch_user.get_django_user(),
'django_user': self._couch_user.get_django_user,
'profile_id': self.profile_id,
},
)
Expand Down

0 comments on commit 1b80ece

Please sign in to comment.