I get error when I want to use this style.
User.objects().update(kwargs)
How can I do it?
P.S This style working good
User.objects().update(state=1)
I get error when I want to use this style.
User.objects().update(kwargs)
How can I do it?
P.S This style working good
User.objects().update(state=1)
You want to unpack the dictionary:
User.objects().update(**kwargs)
Credit to @jonrsharpe for the appropriate question link.