fix #60: sort order changed
This commit is contained in:
parent
1c26442bc4
commit
25b3e8d07c
2 changed files with 3 additions and 3 deletions
|
@ -284,7 +284,7 @@ class PostSearchForm(forms.Form):
|
|||
forum = forms.CharField(required=False, label=_('Forum'))
|
||||
search_in = forms.ChoiceField(choices=SEARCH_IN_CHOICES, label=_('Search in'))
|
||||
sort_by = forms.ChoiceField(choices=SORT_POST_BY_CHOICES, label=_('Sort by'))
|
||||
sort_dir = forms.ChoiceField(choices=SORT_DIR_CHOICES, label=_('Sort order'))
|
||||
sort_dir = forms.ChoiceField(choices=SORT_DIR_CHOICES, initial='DESC', label=_('Sort order'))
|
||||
show_as = forms.ChoiceField(choices=SHOW_AS_CHOICES, label=_('Show results as'))
|
||||
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
{% endfor %}
|
||||
</select>
|
||||
<br /></label>
|
||||
<label class="conl">{{ form.search_in.label }}
|
||||
<label class="conl">{{ form.search_in.label }}
|
||||
<br />
|
||||
{{ form.search_in }}
|
||||
<br /></label>
|
||||
|
@ -50,7 +50,7 @@
|
|||
|
||||
<legend>{% trans "Select how to view search results" %}</legend>
|
||||
<div class="infldset">
|
||||
<label class="conl">{{ form.sort_by.label }}
|
||||
<label class="conl">{{ form.sort_by.label }}
|
||||
<br />
|
||||
{{ form.sort_by }}
|
||||
<br /></label>
|
||||
|
|
Reference in a new issue