On prépare les champs (sinon le cache ne marche pas, il utilise to_str)
This commit is contained in:
parent
062864b6e3
commit
6f92cdf3c1
@ -298,6 +298,7 @@ class EventFilter(django_filters.FilterSet):
|
||||
return self.get_cleaned_data("city")
|
||||
|
||||
def to_str(self, prefix=''):
|
||||
self.form.full_clean()
|
||||
result = ' '.join([c.name for c in self.get_categories()] + [t for t in self.get_tags()] + [c for c in self.get_cities()])
|
||||
if len(result) > 0:
|
||||
result = prefix + result
|
||||
|
Loading…
Reference in New Issue
Block a user