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
you can simply update using methods after filter() query
filter()
obj = Object.objects.filter(index=id).update(**fields) # fields your object(dict) may be **kwargs
if its a .get() method,
obj = Object.objects.get(index=id) obj['key1'] = 'value1' obj.save()