fix cas de base
This commit is contained in:
parent
510ce9f69c
commit
5822c7807c
@ -143,7 +143,12 @@ class EventFilter(django_filters.FilterSet):
|
||||
return []
|
||||
def get_recurrence_filtering(self):
|
||||
if "recurrences" in self.form.cleaned_data:
|
||||
return dict(self.RECURRENT_CHOICES)[self.form.cleaned_data["recurrences"]]
|
||||
d = dict(self.RECURRENT_CHOICES)
|
||||
v = self.form.cleaned_data["recurrences"]
|
||||
if v in d:
|
||||
return d[v]
|
||||
else:
|
||||
return ""
|
||||
else:
|
||||
return ""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user