Correctly render empty query as empty string
@@ -558,6 +558,9 @@ def generate_fields_declaration():
context=EMPTY,
)
def __html__(self, *, context=None, render=None):
+ if not self.bound_members.variables.bound_members:
+ return ''
+
setdefaults_path(
render,
context=context,
