Skip to content

Commit

Permalink
Add more profile save to login signal
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloYeew committed Aug 11, 2021
1 parent b3789cc commit 4ca9ed6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rurusetto/users/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ def user_update_information_in_allauth(request, user, **kwargs):
cover_temp.flush()
profile.cover.save(data["cover_url"].split('/')[-1], File(cover_temp), save=True)

profile.save()

profile.osu_username = data["username"]
profile.osu_id = data["id"]
profile.save()

if data["location"] is None:
profile.location = ""
Expand Down

0 comments on commit 4ca9ed6

Please sign in to comment.