From f44cd331a30c2d9218fd77deaec0c61d207dc2e0 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sat, 7 Jul 2012 14:05:11 +0530 Subject: [PATCH] oops --- itf/insidepages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itf/insidepages/views.py b/itf/insidepages/views.py index 6f5f5e6..42a75b5 100755 --- a/itf/insidepages/views.py +++ b/itf/insidepages/views.py @@ -27,7 +27,7 @@ def add_object(request, module_slug, tab_slug): def edit_object(request, module_slug, tab_slug, object_id): tab = get_object_or_404(ModuleTab, slug=tab_slug) model_class = tab.model_class() - obj = get_object_or_404( + obj = get_object_or_404(model_class, pk=object_id) add_form_name = model_class.main_form form = model_class.get_forms()[add_form_name]