Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions django_ormql/columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ def __init__(self, expr, **kwargs):
super().__init__(**kwargs)

def resolve_column_path(self, remaining_path):
if remaining_path:
raise QueryNotSupported(
f"Column '{self.field_name}' is not a related field"
)

return self.expr


Expand Down
Loading