Cleaned up search form stuff.
This commit is contained in:
Родитель
4ea3f48599
Коммит
64974f6c70
|
@ -4,7 +4,6 @@ import itertools
|
|||
from django import forms
|
||||
from django.forms.util import ErrorDict
|
||||
|
||||
import caching.base as caching
|
||||
from tower import ugettext as _, ugettext_lazy as _lazy
|
||||
|
||||
import amo
|
||||
|
@ -123,7 +122,6 @@ def SearchForm(request):
|
|||
|
||||
# Attach these to the form for usage in the template.
|
||||
top_level_cat = dict(top_level)
|
||||
queryset = AppVersion.objects.filter(id__in=amo.APP_IDS)
|
||||
|
||||
# TODO(jbalogh): when we start using this form for zamboni search, it
|
||||
# should check that the appid and lver match up using app_versions.
|
||||
|
|
|
@ -31,9 +31,7 @@
|
|||
<fieldset class="important">
|
||||
<div class="container">
|
||||
{{ search_form.lver.label_tag()|safe }}
|
||||
{% cache search_form.queryset %}
|
||||
{{ search_form.lver|safe }}
|
||||
{% endcache %}
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="subsidiary">
|
||||
|
|
Загрузка…
Ссылка в новой задаче