Fixed -- Disabled unneeded NULLS FIRST/LAST workaround on SQLite 3.30+.
@@ -1146,6 +1146,7 @@ class OrderBy(BaseExpression):
def as_sqlite(self, compiler, connection):
template = None
+ if connection.Database.sqlite_version_info < (3, 30, 0):
if self.nulls_last:
template = '%(expression)s IS NULL, %(expression)s %(ordering)s'
elif self.nulls_first:
