F Expression

Increment IntField Atomic

from django.db.models import F

TipReceiverInfo.objects.filter(receiver_id=receiver_id).update(receiver_total_fee=F('receiver_total_fee') + amount)

References

[1] [email protected], Django: Increment blog entry view count by one. Is this efficient?

results matching ""

    No results matching ""