This commit is contained in:
Sanj 2011-10-24 03:31:19 +01:00
parent dc0dc09d83
commit ad460a23bc

View File

@ -6,7 +6,7 @@ from ox.django.shortcuts import render_to_json_response
def main(request, 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]
try:
formStr = default_tab.model_class().add_form