X-Git-Url: http://git.ithinksw.org/~kgodey/maayanwich.git/blobdiff_plain/598bab51785e33f0f224d0603b260a9ae35cac47..25e2e5d9d53f08724f2fe9661265d58d850c5d17:/views.py diff --git a/views.py b/views.py index 309aa2f..39ec141 100644 --- a/views.py +++ b/views.py @@ -70,7 +70,7 @@ def add_ingredient(request): def all_sandwich(request): try: - allsandwiches = Sandwich.objects.all() + allsandwiches = Sandwich.objects.order_by('-date_made') except Sandwich.DoesNotExist: raise Http404 return render_to_response('allsandwiches.html', {'allsandwiches': allsandwiches,}, context_instance=RequestContext(request))