Fixed #32714 -- Prevented recreation of migration for Meta.ordering with OrderBy expressions.

Regression in c8b6594305.

Thanks Kevin Marsh for the report.
This commit is contained in:
Simon Charette 2021-05-04 17:49:46 -04:00 committed by Mariusz Felisiak
parent f9f6bd63c9
commit 96f55ccf79
3 changed files with 26 additions and 3 deletions

View file

@ -1192,8 +1192,7 @@ class Exists(Subquery):
return sql, params
@deconstructible
class OrderBy(BaseExpression):
class OrderBy(Expression):
template = '%(expression)s %(ordering)s'
conditional = False