1
0
mirror of https://github.com/django/django.git synced 2025-02-08 08:26:13 +00:00

Removed unnecessary line in OrderBy.as_sql().

Unnecessary since 7286eaf681d497167cd7dc8b70ceebfcf5cd21ad.
This commit is contained in:
David Beitey 2021-04-20 07:47:11 +00:00 committed by GitHub
parent 6b0b3eafd6
commit 4bb27c8719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1232,7 +1232,6 @@ class OrderBy(BaseExpression):
'ordering': 'DESC' if self.descending else 'ASC',
**extra_context,
}
template = template or self.template
params *= template.count('%(expression)s')
return (template % placeholders).rstrip(), params