Disable eboutic in counter click/main

This commit is contained in:
klmp200 committed 2024-12-23 01:35:44 +01:00
1 parent 9c93c004ec
commit 2e5e217842
3 files changed
+19 -1

No files matched your search

+3
View File
@@ -148,6 +148,9 @@ class CounterClick(CounterTabsMixin, CanViewMixin, SingleObjectMixin, FormView):
pk_url_kwarg = "counter_id"
current_tab = "counter"
def get_queryset(self):
return super().get_queryset().exclude(type="EBOUTIC")
def get_form_kwargs(self):
kwargs = super().get_form_kwargs()
kwargs["form_kwargs"] = {