kfet -- Add fixme related to available checkouts in K-Psul
This commit is contained in:
parent
ec29e6ef5c
commit
93d3c124fd
1 changed files with 4 additions and 0 deletions
|
@ -273,6 +273,10 @@ class ArticleRestrictForm(ArticleForm):
|
||||||
# -----
|
# -----
|
||||||
|
|
||||||
class KPsulOperationGroupForm(forms.ModelForm):
|
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(
|
checkout = forms.ModelChoiceField(
|
||||||
queryset = Checkout.objects.filter(
|
queryset = Checkout.objects.filter(
|
||||||
is_protected=False, valid_from__lte=timezone.now(),
|
is_protected=False, valid_from__lte=timezone.now(),
|
||||||
|
|
Loading…
Reference in a new issue