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
|
||||
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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user