intent: How do I use a dictionary to update fields in Django models?
rewritten_intent: update fields in Django model `Book` with arguments in dictionary `d` where primary key is equal to `pk`
snippet: Book.objects.filter(pk=pk).update(**d)