allow themes to show up in collection creation/management autocomplete add-on suggestions (bug 857300)

This commit is contained in:
Chris Van 2013-04-03 22:46:14 -07:00
Родитель 6badaa71c8
Коммит 76c4cfe2e5
3 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -61,8 +61,8 @@
<div class="tab_panel tab-panel tab-selected" id="addons-edit">
<form method="post"
action="{{ url('collections.edit_addons', username, slug) }}">
{% include 'bandwagon/includes/addon_selector.html' %}
{{ csrf() }}
{% include 'bandwagon/includes/addon_selector.html' %}
<div class="listing-footer">
<input type="submit" value="{{ _('Save Changes') }}">
{% if owner %}

Просмотреть файл

@ -197,6 +197,7 @@ ADDON_SEARCH_TYPES = [
ADDON_DICT,
ADDON_SEARCH,
ADDON_LPAPP,
ADDON_PERSONA,
]
ADDON_ADMIN_SEARCH_TYPES = ADDON_SEARCH_TYPES + [ADDON_PLUGIN]

Просмотреть файл

@ -423,8 +423,8 @@ class WebappSuggestionsAjax(SearchSuggestionsAjax):
@json_view
def ajax_search(request):
"""This is currently used only to return add-ons for populating a
new collection. Personas are included by default, so this can be
used elsewhere.
new collection. Themes (formerly Personas) are included by default, so
this can be used elsewhere.
"""
search_obj = BaseAjaxSearch(request)