Skip to content

Commit

Permalink
Merge pull request #1 from smotornyuk/master
Browse files Browse the repository at this point in the history
fix: remove generic type from collection class
  • Loading branch information
mutantsan authored Feb 12, 2024
2 parents 988f7b2 + e4abd41 commit 92fe621
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 92fe621

Please sign in to comment.