allow themes to show up in collection creation/management autocomplete add-on suggestions (bug 857300)
This commit is contained in:
Родитель
6badaa71c8
Коммит
76c4cfe2e5
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче