Skip to content

Instantly share code, notes, and snippets.

@huxaiphaer
Created August 31, 2020 16:38
Show Gist options
  • Save huxaiphaer/573f515dab09275ceaaf56d1f9f44911 to your computer and use it in GitHub Desktop.
Save huxaiphaer/573f515dab09275ceaaf56d1f9f44911 to your computer and use it in GitHub Desktop.
1. Regarding on how to update the User there are two options and below are the following :-
a). Non - customized User.
```
user = User.objects.get(pk=x)
user.firstname = ‘xxx’
user.save()
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment