What does the Django ORM's F() expression allow?
- A Referencing a model field's database value directly within a query, avoiding a race condition
- B Filtering by foreign key
- C Formatting output values
- D Defining a custom field type
Answer
Referencing a model field's database value directly within a query, avoiding a race condition
F('views') + 1 performs the increment in the database atomically, rather than reading into Python and writing back, which can lose concurrent updates.





