Update model django through kwargs
As long as the PK is the same, the existing row will be overwritten.
obj = Object(index=id, **fields)
obj.save()
def update_object(obj, **kwargs):
for k, v in kwargs.items():
setattr(obj, k, v)
obj.save()