1👍
✅
Looks like setting the model’s name field and calling the model’s save method is being done to 2 separate references of the model. Everytime you select via [index]
, queryset is returning from its cache.
https://docs.djangoproject.com/en/2.1/topics/db/queries/#when-querysets-are-not-cached
queryset[0].name = "foo" // <Model pk=1 name="foo">
queryset[0].save() // <Model pk=1 name=default> SAVED
Source:stackexchange.com