Skip to content

Commit

Permalink
Merge pull request #33821 from dimagi/es/user-data-fix
Browse files Browse the repository at this point in the history
Lazily fetch django user only on first load
  • Loading branch information
gherceg authored Nov 30, 2023
2 parents 859aa47 + 1b80ece commit e8df095
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 e8df095

Please sign in to comment.