diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt
index f48dcbb..c5a433c 100644
|
a
|
b
|
calling the appropriate methods on the wrapped expression.
|
| 448 | 448 | Tells Django that this expression contains an aggregate and that a |
| 449 | 449 | ``GROUP BY`` clause needs to be added to the query. |
| 450 | 450 | |
| 451 | | .. method:: resolve_expression(query=None, allow_joins=True, reuse=None, summarize=False) |
| | 451 | .. method:: resolve_expression(query=None, allow_joins=True, reuse=None, summarize=False, for_save=False) |
| 452 | 452 | |
| 453 | 453 | Provides the chance to do any pre-processing or validation of |
| 454 | 454 | the expression before it's added to the query. ``resolve_expression()`` |
| … |
… |
Now we implement the pre-processing and validation. Since we do not have
|
| 579 | 579 | any of our own validation at this point, we just delegate to the nested |
| 580 | 580 | expressions:: |
| 581 | 581 | |
| 582 | | def resolve_expression(self, query=None, allow_joins=True, reuse=None, summarize=False): |
| | 582 | def resolve_expression(self, query=None, allow_joins=True, reuse=None, summarize=False, for_save=False): |
| 583 | 583 | c = self.copy() |
| 584 | 584 | c.is_summary = summarize |
| 585 | 585 | for pos, expression in enumerate(self.expressions): |
| 586 | | c.expressions[pos] = expression.resolve_expression(query, allow_joins, reuse, summarize) |
| | 586 | c.expressions[pos] = expression.resolve_expression(query, allow_joins, reuse, summarize, for_save) |
| 587 | 587 | return c |
| 588 | 588 | |
| 589 | 589 | Next, we write the method responsible for generating the SQL:: |