Changeset 288:afdda4d19a82


Ignore:
Timestamp:
04.11.2010 14:49:41 (19 months ago)
Author:
slav0nic <slav0nic0@…>
Branch:
default
Message:

fix #60: sort order changed

Location:
djangobb/djangobb_forum
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • djangobb/djangobb_forum/forms.py

    r279 r288  
    285285    search_in = forms.ChoiceField(choices=SEARCH_IN_CHOICES, label=_('Search in')) 
    286286    sort_by = forms.ChoiceField(choices=SORT_POST_BY_CHOICES, label=_('Sort by')) 
    287     sort_dir = forms.ChoiceField(choices=SORT_DIR_CHOICES, label=_('Sort order')) 
     287    sort_dir = forms.ChoiceField(choices=SORT_DIR_CHOICES, initial='DESC', label=_('Sort order')) 
    288288    show_as = forms.ChoiceField(choices=SHOW_AS_CHOICES, label=_('Show results as')) 
    289289 
  • djangobb/djangobb_forum/templates/forum/search_form.html

    r211 r288  
    3838                                                </select> 
    3939                                                <br /></label> 
    40                                                 <label class="conl">{{ form.search_in.label }}                                   
     40                                                <label class="conl">{{ form.search_in.label }} 
    4141                                                <br /> 
    4242                                                {{ form.search_in }} 
     
    5151                                        <legend>{% trans "Select how to view search results" %}</legend> 
    5252                                        <div class="infldset"> 
    53                                                 <label class="conl">{{ form.sort_by.label }}                                             
     53                                                <label class="conl">{{ form.sort_by.label }} 
    5454                                                <br /> 
    5555                                                {{ form.sort_by }} 
Note: See TracChangeset for help on using the changeset viewer.