forked from DGNum/gestioCOF
Merge branch 'Aufinal/meta' into 'master'
Fix : autocomplétion sans classe `Meta` See merge request klub-dev-ens/gestioCOF!468
This commit is contained in:
commit
0ffebdf82f
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ class ModelSearch(SearchUnit):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
if self.verbose_name is None:
|
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):
|
def get_queryset_filter(self, keywords):
|
||||||
filter_q = Q()
|
filter_q = Q()
|
||||||
|
|
Loading…
Reference in a new issue