From a525cffaffc53790338f9406eff513b22fda4faa Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Wed, 21 Oct 2020 16:02:01 +0200 Subject: [PATCH] Fix participant autocomplete --- shared/autocomplete.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/autocomplete.py b/shared/autocomplete.py index 75c6d814..a601d5f9 100644 --- a/shared/autocomplete.py +++ b/shared/autocomplete.py @@ -98,7 +98,7 @@ class ModelSearch(SearchUnit): def __init__(self): if self.verbose_name is None: - self.verbose_name = "{} search".format(self.model.Meta.verbose_name) + self.verbose_name = "{} search".format(self.model._meta.verbose_name) def get_queryset_filter(self, keywords): filter_q = Q()