X-Git-Url: http://git.ithinksw.org/~kgodey/maayanwich.git/blobdiff_plain/2bfc95198cc682f60802b7367e0db2413a382b44..695fbac5cde9f2b38d3b67247480d7f470754331:/views.py diff --git a/views.py b/views.py index fde9e56..bc4798b 100644 --- a/views.py +++ b/views.py @@ -104,6 +104,13 @@ def all_sandwich(request): except Sandwich.DoesNotExist: raise Http404 return render_to_response('allsandwiches.html', {'allsandwiches': allsandwiches,}, context_instance=RequestContext(request)) + +def index_sandwich(request): + try: + allsandwiches = Sandwich.objects.order_by('adjective') + except Sandwich.DoesNotExist: + raise Http404 + return render_to_response('indexsandwiches.html', {'allsandwiches': allsandwiches,}, context_instance=RequestContext(request)) def sandwich_month(request, year, month):