Skip to content

Instantly share code, notes, and snippets.

@sankalpjonn
Created June 12, 2021 15:18
Show Gist options
  • Save sankalpjonn/54ccfb3e813ce71160154fa1570648e3 to your computer and use it in GitHub Desktop.
Save sankalpjonn/54ccfb3e813ce71160154fa1570648e3 to your computer and use it in GitHub Desktop.
>>> record = Record.objects.get(id=1)
>>> record.name = "new record name"
>>> record.save(update_fields=['name'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment