We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
p = Person.objects.filter(name="Granny") # Assuming only one record fetched. p[0].first_name = "Morgan" p[0].last_name = "Stanley" p.save()
Above case do not update the values in DB. even
p[0].update_attributes(first_name="Morgan", last_name="Stanley") p[0].save()
doesn't work.
Instead following work as expected.
p = Person.objects.get_by_id('1') p.first_name = "Morgan" p.last_name = Stanley p.save()
I believe this is critical issue.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Above case do not update the values in DB.
even
doesn't work.
Instead following work as expected.
I believe this is critical issue.
The text was updated successfully, but these errors were encountered: