How can i pass a dict which contain fields to update a Django model? This is not to create an object, but to update it.
example:
obj = Object.objects.cre
As long as the PK is the same, the existing row will be overwritten.
obj = Object(index=id, **fields) obj.save()