From 08c2b6352b656dc374d792139c2256b4b43f2266 Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 16 Nov 2012 04:44:48 +0530 Subject: [PATCH] silly, output galleries correctly --- itf/insidepages/views.py | 2 +- itf/templates/test/person_form.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/itf/insidepages/views.py b/itf/insidepages/views.py index e2c28a7..48625e3 100755 --- a/itf/insidepages/views.py +++ b/itf/insidepages/views.py @@ -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) diff --git a/itf/templates/test/person_form.html b/itf/templates/test/person_form.html index d78944e..e992ff1 100644 --- a/itf/templates/test/person_form.html +++ b/itf/templates/test/person_form.html @@ -200,7 +200,7 @@ $(function(){

Multimedia

- {% if add %} + {% if new %}
Please save before you can add media galleries to this.