Skip to content

Conversation

@keycodingyfq
Copy link

@keycodingyfq keycodingyfq commented Jun 13, 2025

1、support F() in filter an update use like below:

TestModel.objects.all().update(a=F('a')+1)
TestModel.objects.all().update(a=F('a'))
TestModel.objects.filter(a__gte=F('b')-1*2).update(a=F('a')+1)

2、fix bug use like below
TestModel.objects.all().update(a=0) would throw exception Collection.update_many() missing 1 required positional argument: 'filter'

3、support BooleanField in filter like below:
TestModel.objects.filter(a=True).all()

@keycodingyfq keycodingyfq changed the title support T() for filter and update support T() for filter and update and support BooleanField in filter Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant