Permalink
Browse files

allow themes to show up in collection creation/management autocomplet…

…e add-on suggestions (bug 857300)
  • Loading branch information...
1 parent 6badaa7 commit 76c4cfe2e59eb626f454a2c2b592dbd3476f782a @cvan cvan committed Apr 4, 2013
Showing with 4 additions and 3 deletions.
  1. +1 −1 apps/bandwagon/templates/bandwagon/edit.html
  2. +1 −0 apps/constants/base.py
  3. +2 −2 apps/search/views.py
@@ -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_DICT,
ADDON_SEARCH,
ADDON_LPAPP,
+ ADDON_PERSONA,
]
ADDON_ADMIN_SEARCH_TYPES = ADDON_SEARCH_TYPES + [ADDON_PLUGIN]
@@ -423,8 +423,8 @@ def queryset(self):
@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)

0 comments on commit 76c4cfe

Please sign in to comment.