summaryrefslogtreecommitdiff
path: root/app/expenses/views.py
blob: 7442178548253f3d5f659e5f4c74de41fb3b7495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext

from .models import Expense, CATS

def detail(request):
    context = {
        'object_list': Expense.objects.all(),
        'categories': CATS
    }
    return render_to_response('details/expenses.html', context, context_instance=RequestContext(request))