Skip to content

Commit f858b51

Browse files
committed
[1.8.x] Refs #14030 -- Renamed CombinableMixin to Combinable
Removed unused method and updated docstrings. Backport of 14d0bd6 from master
1 parent 6c68e40 commit f858b51

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

django/db/models/expressions.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from django.utils.functional import cached_property
1212

1313

14-
class CombinableMixin(object):
14+
class Combinable(object):
1515
"""
1616
Provides the ability to combine one or two objects with
1717
some connector. For example F('foo') + F('bar').
@@ -184,6 +184,7 @@ def resolve_expression(self, query=None, allow_joins=True, reuse=None, summarize
184184
in this query
185185
* reuse: a set of reusable joins for multijoins
186186
* summarize: a terminal aggregate clause
187+
* for_save: whether this expression about to be used in a save or update
187188
188189
Returns: an ExpressionNode to be added to the query.
189190
"""
@@ -297,9 +298,6 @@ def refs_aggregate(self, existing_aggregates):
297298
return agg, lookup
298299
return False, ()
299300

300-
def prepare_database_save(self, field):
301-
return self
302-
303301
def get_group_by_cols(self):
304302
if not self.contains_aggregate:
305303
return [self]
@@ -325,7 +323,7 @@ def reverse_ordering(self):
325323
return self
326324

327325

328-
class ExpressionNode(BaseExpression, CombinableMixin):
326+
class ExpressionNode(BaseExpression, Combinable):
329327
"""
330328
An expression that can be combined with other expressions.
331329
"""

0 commit comments

Comments
 (0)