B
B
bQ12019-08-30 14:03:35
Django
bQ1, 2019-08-30 14:03:35

How is saving a model field different?

How it differs
model.field += 1
from
model.field = F('field') + 1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-08-30
@bQ1

The one where the addition is done. In the first case, it is done by the python code, in the second by the DBMS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question