Skip to content

Commit

Permalink
Merge pull request #490 from camptocamp/backport/488-to-2.4
Browse files Browse the repository at this point in the history
[Backport 2.4] Set more precise type for filter_column
  • Loading branch information
sbrunner authored Nov 4, 2024
2 parents aac21dc + ab49f4f commit 9d07cfa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions c2cgeoform/views/abstract_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import sqlalchemy.orm.attributes
import sqlalchemy.orm.properties
import sqlalchemy.schema
import sqlalchemy.sql.elements
import sqlalchemy.sql.expression
from deform import Form, ValidationFailure # , ZPTRendererFactory
from deform.form import Button
Expand Down Expand Up @@ -99,8 +100,8 @@ def __init__(
key: Optional[str] = None,
label: Optional[str] = None,
renderer: Optional[Callable[[T], JSONDict]] = None,
sort_column: Optional[sqlalchemy.sql.expression.ColumnElement[Any]] = None,
filter_column: Optional[sqlalchemy.schema.Column[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 9d07cfa

Please sign in to comment.