diff --git a/.gitignore b/.gitignore index 005ef51df..77613ad0f 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ locale/*/LC_MESSAGES/django.mo djangoproject/cache djangoproject/static/css/*.map djangoproject/static/css/*.css +/venv diff --git a/docs/templates/docs/search_form.html b/docs/templates/docs/search_form.html index 65823c757..c1d1a01d0 100644 --- a/docs/templates/docs/search_form.html +++ b/docs/templates/docs/search_form.html @@ -1,9 +1,17 @@ {% load i18n %} -
- + + + {{ form.q }} + {# Preserve the selected category across searches #} + {% if category %} + + {% endif %} +