From fbc4c32657160751fac956d8fdede92b989bca54 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Tue, 30 Jan 2024 14:44:23 +0100 Subject: [PATCH] chore: Update django api Part-of: --- api/funkwhale_api/common/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/funkwhale_api/common/models.py b/api/funkwhale_api/common/models.py index ebd705813..575ff864b 100644 --- a/api/funkwhale_api/common/models.py +++ b/api/funkwhale_api/common/models.py @@ -60,12 +60,12 @@ class NullsLastSQLCompiler(SQLCompiler): class NullsLastQuery(models.sql.query.Query): """Use a custom compiler to inject 'NULLS LAST' (for PostgreSQL).""" - def get_compiler(self, using=None, connection=None): + def get_compiler(self, using=None, connection=None, elide_empty=True): if using is None and connection is None: raise ValueError("Need either using or connection") if using: connection = connections[using] - return NullsLastSQLCompiler(self, connection, using) + return NullsLastSQLCompiler(self, connection, using, elide_empty) class NullsLastQuerySet(models.QuerySet):