Which of the following is NOT true about Django's update() method?
Correct answer
B. It can only be used with integer fields
18 views
B. It can only be used with integer fields
18 views
The false statement is that update() can only be used with integer fields. It can set fields of any type.
It is true that update() changes many rows in a single query, takes keyword arguments and returns the number of rows affected. It does not call save() or trigger signals.
For more solved questions like this one, see Computer Science MCQs on MCQsExam.com.
Not sure why the answer is B? Ask here and get an explanation.