oops
This commit is contained in:
parent
f495094eba
commit
f44cd331a3
|
@ -27,7 +27,7 @@ def add_object(request, module_slug, tab_slug):
|
||||||
def edit_object(request, module_slug, tab_slug, object_id):
|
def edit_object(request, module_slug, tab_slug, object_id):
|
||||||
tab = get_object_or_404(ModuleTab, slug=tab_slug)
|
tab = get_object_or_404(ModuleTab, slug=tab_slug)
|
||||||
model_class = tab.model_class()
|
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
|
add_form_name = model_class.main_form
|
||||||
form = model_class.get_forms()[add_form_name]
|
form = model_class.get_forms()[add_form_name]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user