8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 12:53:11 +00:00

Texte d'aide sur l'utilisation de termes de recherche exacts

This commit is contained in:
Maël Kervella 2017-11-07 22:16:59 +00:00
parent 536081da10
commit 57021ad573

View file

@ -45,21 +45,32 @@ CHOICES_AFF = (
) )
def initial_choices(c): def initial_choices(choice_set):
"""Return the choices that should be activated by default for a """Return the choices that should be activated by default for a
given set of choices""" given set of choices"""
return [i[0] for i in c] return [i[0] for i in choice_set]
class SearchForm(Form): class SearchForm(Form):
"""The form for a simple search""" """The form for a simple search"""
q = forms.CharField(label='Search', max_length=100) q = forms.CharField(
label='Recherche',
help_text=(
'Utilisez « » et «,» pour spécifier différents mots, «"query"» '
'pour une recherche exacte et «\\» pour échapper un caractère.'
),
max_length=100
)
class SearchFormPlus(Form): class SearchFormPlus(Form):
"""The form for an advanced search (with filters)""" """The form for an advanced search (with filters)"""
q = forms.CharField( q = forms.CharField(
label='Search', label='Recherche',
help_text=(
'Utilisez « » et «,» pour spécifier différents mots, «"query"» '
'pour une recherche exacte et «\\» pour échapper un caractère.'
),
max_length=100, max_length=100,
required=False required=False
) )