Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correctly sort model docs.

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@4793 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 288243aa8a473f584ee9b088db7da03970f9666a 1 parent b2582cd
jacob authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  django_website/apps/docs/views.py
3  django_website/apps/docs/views.py
View
@@ -64,6 +64,9 @@ def model_index(request, version=None):
except ValueError:
number = None
model_docs.append({"title" : title, "link" : os.path.basename(testdir.name), "number" : number})
+
+ model_docs.sort(lambda a,b: cmp(a["number"], b["number"]))
+
cache.set(cache_key, model_docs, 60*60)
return render_to_response(
Please sign in to comment.
Something went wrong with that request. Please try again.