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
def update_object(obj, **kwargs): for k, v in kwargs.items(): setattr(obj, k, v) obj.save()