Removed unnecessary line in OrderBy.as_sql().

Unnecessary since 7286eaf681.
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
1 changed files with 0 additions and 1 deletions

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