forked from DGNum/gestioCOF
core -- Apply black + isort to all files
This commit is contained in:
parent
104e71dcf6
commit
fdd2b35289
196 changed files with 10727 additions and 8365 deletions
|
@ -1,6 +1,5 @@
|
|||
from django.db.models import Q
|
||||
|
||||
from dal import autocomplete
|
||||
from django.db.models import Q
|
||||
|
||||
|
||||
class Select2QuerySetView(autocomplete.Select2QuerySetView):
|
||||
|
@ -18,7 +17,7 @@ class Select2QuerySetView(autocomplete.Select2QuerySetView):
|
|||
|
||||
for word in words:
|
||||
for field in self.search_fields:
|
||||
filter_q |= Q(**{'{}__icontains'.format(field): word})
|
||||
filter_q |= Q(**{"{}__icontains".format(field): word})
|
||||
|
||||
return filter_q
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue