silly, output galleries correctly

This commit is contained in:
Sanj 2012-11-16 04:44:48 +05:30
parent 32fafa238d
commit 08c2b6352b
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ def edit_object(request, module_slug, tab_slug, object_id):
content_type_id = ContentType.objects.get_for_model(model_class).id
add_form_name = model_class.main_form
form = model_class.get_forms()[add_form_name]
galleries = obj.galleries
galleries = obj.galleries.all()
if request.POST:
f = form(request.POST, request.FILES, instance=obj)

View File

@ -200,7 +200,7 @@ $(function(){
<div class="inlineWrapper">
<h3 class="orange">Multimedia</h3>
<div class="inlineHidden">
{% if add %}
{% if new %}
<div class="formset_help_text">
Please save before you can add media galleries to this.
</div>