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...
1 parent b2582cd commit 288243aa8a473f584ee9b088db7da03970f9666a jacob committed Mar 23, 2007
Showing with 3 additions and 0 deletions.
  1. +3 −0 django_website/apps/docs/views.py
View
3 django_website/apps/docs/views.py
@@ -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(

0 comments on commit 288243a

Please sign in to comment.