mirror of
https://github.com/django/django.git
synced 2025-08-22 19:44:44 +00:00
Fixed #24420 -- Allowed ordering by case expressions
This commit is contained in:
parent
82f7bee1d5
commit
ceaf31adff
3 changed files with 47 additions and 0 deletions
|
@ -630,6 +630,11 @@ class Ref(ExpressionNode):
|
|||
def set_source_expressions(self, exprs):
|
||||
self.source, = exprs
|
||||
|
||||
def resolve_expression(self, query=None, allow_joins=True, reuse=None, summarize=False, for_save=False):
|
||||
# The sub-expression `source` has already been resolved, as this is
|
||||
# just a reference to the name of `source`.
|
||||
return self
|
||||
|
||||
def relabeled_clone(self, relabels):
|
||||
return self
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue