diff options
| author | Josh Smeaton <josh.smeaton@gmail.com> | 2015-01-27 13:42:48 +1100 |
|---|---|---|
| committer | Josh Smeaton <josh.smeaton@gmail.com> | 2015-01-28 10:59:30 +1100 |
| commit | 14d0bd67d4bcf55f8a0a2b01433571a8b714121f (patch) | |
| tree | 536eafc5d485114ac60a85c6939965e7bd1a33ee | |
| parent | 7171bf755b0c4be85ddbcc164eaf87164c131021 (diff) | |
Refs #14030 -- Renamed CombinableMixin to Combinable
Removed unused method and updated docstrings.
| -rw-r--r-- | django/db/models/expressions.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py index 9caa5dace4..87a08ecc3b 100644 --- a/django/db/models/expressions.py +++ b/django/db/models/expressions.py @@ -11,7 +11,7 @@ from django.utils import timezone from django.utils.functional import cached_property -class CombinableMixin(object): +class Combinable(object): """ Provides the ability to combine one or two objects with some connector. For example F('foo') + F('bar'). @@ -184,6 +184,7 @@ class BaseExpression(object): in this query * reuse: a set of reusable joins for multijoins * summarize: a terminal aggregate clause + * for_save: whether this expression about to be used in a save or update Returns: an ExpressionNode to be added to the query. """ @@ -297,9 +298,6 @@ class BaseExpression(object): return agg, lookup return False, () - def prepare_database_save(self, field): - return self - def get_group_by_cols(self): if not self.contains_aggregate: return [self] @@ -325,7 +323,7 @@ class BaseExpression(object): return self -class ExpressionNode(BaseExpression, CombinableMixin): +class ExpressionNode(BaseExpression, Combinable): """ An expression that can be combined with other expressions. """ |
