Skip to content

Commit e9b7484

Browse files
committed
Edits.
1 parent 41fba65 commit e9b7484

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

django_mongodb/expressions.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ def query(self, compiler, connection): # noqa: ARG001
7777

7878

7979
def ref(self, compiler, connection): # noqa: ARG001
80-
if isinstance(self.source, Col) and self.source.alias != compiler.collection_name:
81-
prefix = f"{self.source.alias}."
82-
else:
83-
prefix = ""
80+
prefix = (
81+
f"{self.source.alias}."
82+
if isinstance(self.source, Col) and self.source.alias != compiler.collection_name
83+
else ""
84+
)
8485
return f"${prefix}{self.refs}"
8586

8687

0 commit comments

Comments
 (0)