diff --git a/horilla_views/generic/cbv/views.py b/horilla_views/generic/cbv/views.py index 6a0852587..1741bbfe3 100644 --- a/horilla_views/generic/cbv/views.py +++ b/horilla_views/generic/cbv/views.py @@ -1607,7 +1607,7 @@ class HorillaCardView(ListView): filter_class: FilterSet = None - view_id: str = get_short_uuid(4, prefix="hcv") + view_id: str = None template_name = "generic/horilla_card.html" context_object_name = "queryset" @@ -1651,6 +1651,9 @@ class HorillaCardView(ListView): self._saved_filters = QueryDict() self.ordered_ids_key = f"ordered_ids_{self.model.__name__.lower()}" + if not self.view_id: + self.view_id = get_short_uuid(4, prefix="hcv") + def get_queryset(self): if not self.queryset: self.queryset = super().get_queryset() diff --git a/horilla_views/templates/generic/horilla_kanban_view.html b/horilla_views/templates/generic/horilla_kanban_view.html index 974a268dc..6004084d0 100644 --- a/horilla_views/templates/generic/horilla_kanban_view.html +++ b/horilla_views/templates/generic/horilla_kanban_view.html @@ -28,7 +28,7 @@ hx-on:click="htmxLoadIndicator(this);" > - {% if show_filter_tags %} {% include "generic/filter_tags.html" %} {% endif %} + {% if show_filter_tags %} {% include "generic/filter_tags.html" %} {% endif %}