Disable eboutic in counter click/main

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

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"] = {