Skip to content

Commit

Permalink
Revert "sort_column and filter_column can also be InstrumentedAttribute"
Browse files Browse the repository at this point in the history
This reverts commit bfb4ae5.
  • Loading branch information
sbrunner committed Nov 5, 2024
1 parent bfb4ae5 commit e37d2a5
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions c2cgeoform/views/abstract_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,8 @@ def __init__(
key: Optional[str] = None,
label: Optional[str] = None,
renderer: Optional[Callable[[T], JSON]] = None,
sort_column: Optional[
Union[
sqlalchemy.sql.elements.ColumnElement[Any],
sqlalchemy.orm.attributes.InstrumentedAttribute[Any],
]
] = None,
filter_column: Optional[
Union[
sqlalchemy.sql.elements.ColumnElement[Any],
sqlalchemy.orm.attributes.InstrumentedAttribute[Any],
]
] = None,
sort_column: Optional[sqlalchemy.sql.elements.ColumnElement[Any]] = None,
filter_column: Optional[sqlalchemy.sql.elements.ColumnElement[Any]] = None,
visible: bool = True,
):
self._attr = _getattr(model, attr)
Expand Down

0 comments on commit e37d2a5

Please sign in to comment.