silly, output galleries correctly
This commit is contained in:
parent
32fafa238d
commit
08c2b6352b
|
@ -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
|
content_type_id = ContentType.objects.get_for_model(model_class).id
|
||||||
add_form_name = model_class.main_form
|
add_form_name = model_class.main_form
|
||||||
form = model_class.get_forms()[add_form_name]
|
form = model_class.get_forms()[add_form_name]
|
||||||
galleries = obj.galleries
|
galleries = obj.galleries.all()
|
||||||
|
|
||||||
if request.POST:
|
if request.POST:
|
||||||
f = form(request.POST, request.FILES, instance=obj)
|
f = form(request.POST, request.FILES, instance=obj)
|
||||||
|
|
|
@ -200,7 +200,7 @@ $(function(){
|
||||||
<div class="inlineWrapper">
|
<div class="inlineWrapper">
|
||||||
<h3 class="orange">Multimedia</h3>
|
<h3 class="orange">Multimedia</h3>
|
||||||
<div class="inlineHidden">
|
<div class="inlineHidden">
|
||||||
{% if add %}
|
{% if new %}
|
||||||
<div class="formset_help_text">
|
<div class="formset_help_text">
|
||||||
Please save before you can add media galleries to this.
|
Please save before you can add media galleries to this.
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user