From 4edab88fb550a333d48b17236f8d8ad187af1a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Cant=C3=B9?= Date: Mon, 30 Sep 2024 14:40:16 +0200 Subject: [PATCH] disable timerange temporarly --- src/genlab_bestilling/forms.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/genlab_bestilling/forms.py b/src/genlab_bestilling/forms.py index 5b9fa0c..03b7850 100644 --- a/src/genlab_bestilling/forms.py +++ b/src/genlab_bestilling/forms.py @@ -6,7 +6,6 @@ # from django.core.exceptions import ValidationError from django.forms.renderers import BaseRenderer from django.forms.utils import ErrorList -from formset.ranges import DateRangePicker from formset.renderers.tailwind import FormRenderer from formset.utils import FormMixin from formset.widgets import DualSortableSelector, Selectize @@ -55,7 +54,7 @@ class Meta: "sample_types", "analysis_types", "expected_total_samples", - "analysis_timerange", + # "analysis_timerange", ) widgets = { "area": Selectize(search_lookup="name_icontains"), @@ -68,7 +67,7 @@ class Meta: ), "sample_types": DualSortableSelector(search_lookup="name_icontains"), "analysis_types": DualSortableSelector(search_lookup="name_icontains"), - "analysis_timerange": DateRangePicker(), + # "analysis_timerange": DateRangePicker(), } @@ -80,7 +79,7 @@ class Meta(GenrequestForm.Meta): "sample_types", "analysis_types", "expected_total_samples", - "analysis_timerange", + # "analysis_timerange", ) # def clean_species(self) -> dict[str, Any]: