wtf
This commit is contained in:
parent
dc0dc09d83
commit
ad460a23bc
|
@ -6,7 +6,7 @@ from ox.django.shortcuts import render_to_json_response
|
||||||
|
|
||||||
def main(request, module_slug):
|
def main(request, module_slug):
|
||||||
m = get_object_or_404(Module, slug=module_slug)
|
m = get_object_or_404(Module, slug=module_slug)
|
||||||
tabs = m.moduletab_set.all()
|
tabs = m.moduletab_set.all().order_by('order')
|
||||||
default_tab = tabs[0]
|
default_tab = tabs[0]
|
||||||
try:
|
try:
|
||||||
formStr = default_tab.model_class().add_form
|
formStr = default_tab.model_class().add_form
|
||||||
|
|
Loading…
Reference in New Issue
Block a user