+@login_required
+def sandwich_user(request, username):
+ user = User.objects.get(username = username)
+ try:
+ ms = Sandwich.objects.filter(user = user)
+ except Sandwich.DoesNotExist:
+ raise Http404
+ return render_to_response('usersandwiches.html', {'allsandwiches': ms,}, context_instance=RequestContext(request))