3 ms·
There is an update method that can be used with F expressions to achieve this. This is the example in their docs: Entry.objects.all().update(n_pingbacks=F
by collyw 10y ago
There is an update method that can be used with F expressions to achieve this.
This is the example in their docs:
Entry.objects.all().update(n_pingbacks=F('n_pingbacks') + 1)