human
How do I use a dictionary to update fields in Django models?
assistant
Here is some code to update fields in Django model `Book` with arguments in dictionary `d` where primary key is equal to `pk`

Book.objects.filter(pk=pk).update(**d)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.