789 | | The ``update()`` method is applied instantly and returns the number of rows |
790 | | affected by the query. The only restriction on the ``QuerySet`` that is |
791 | | updated is that it can only access one database table, the model's main |
792 | | table. You can filter based on related fields, but you can only update columns |
793 | | in the model's main table. Example:: |
| 789 | The ``update()`` method is applied instantly. The return value is dependant on |
| 790 | the backend. The only restriction on the ``QuerySet`` that is updated is that |
| 791 | it can only access one database table, the model's main table. You can filter |
| 792 | based on related fields, but you can only update columns in the model's main |
| 793 | table. Example:: |