mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +00:00
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:
parent
f9f6bd63c9
commit
96f55ccf79
3 changed files with 26 additions and 3 deletions
|
@ -1192,8 +1192,7 @@ class Exists(Subquery):
|
|||
return sql, params
|
||||
|
||||
|
||||
@deconstructible
|
||||
class OrderBy(BaseExpression):
|
||||
class OrderBy(Expression):
|
||||
template = '%(expression)s %(ordering)s'
|
||||
conditional = False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue