From 93d3c124fdc98c79a42dcab58267ba47cca0271b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Mon, 1 Oct 2018 16:45:48 +0200 Subject: [PATCH] kfet -- Add fixme related to available checkouts in K-Psul --- kfet/forms.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kfet/forms.py b/kfet/forms.py index 522f20de..5fcd30a6 100644 --- a/kfet/forms.py +++ b/kfet/forms.py @@ -273,6 +273,10 @@ class ArticleRestrictForm(ArticleForm): # ----- class KPsulOperationGroupForm(forms.ModelForm): + # FIXME(AD): Use timezone.now instead of timezone.now() to avoid using a + # fixed datetime (application boot here). + # One may even use: Checkout.objects.is_valid() if changing + # to now = timezone.now is ok in 'is_valid' definition. checkout = forms.ModelChoiceField( queryset = Checkout.objects.filter( is_protected=False, valid_from__lte=timezone.now(),