Skip to content

Commit

Permalink
fix: remove generic type from collection class
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed Feb 4, 2024
1 parent 988f7b2 commit e4abd41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckanext/tour/collection.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

from typing import Any
from ckanext.collection.utils.data.model import ModelData

from dominate import tags
Expand All @@ -15,7 +14,7 @@
ApColumns,
BulkAction,
RowAction,
ApHtmxTableSerializer
ApHtmxTableSerializer,
)

from ckanext.tour.model import Tour
Expand All @@ -28,7 +27,8 @@ def tour_row_dictizer(serializer: ApHtmxTableSerializer, row: Tour):

return data

class TourListCollection(ApCollection[Any]):

class TourListCollection(ApCollection):
SerializerFactory = ApHtmxTableSerializer.with_attributes(
row_dictizer=tour_row_dictizer
)
Expand Down Expand Up @@ -118,7 +118,7 @@ class TourListCollection(ApCollection[Any]):
"tour_id": "$id",
},
},
)
),
],
static_filters=[
InputFilter(
Expand Down

0 comments on commit e4abd41

Please sign in to comment.