gestioCOF/journaldecaisse/views.py

8 lines
294 B
Python
Raw Normal View History

2020-02-16 18:37:16 +01:00
from django.http import HttpResponse
2020-02-17 11:40:58 +01:00
from .models import JournalEntry
from django.shortcuts import render
2020-02-16 18:37:16 +01:00
def index(request):
2020-02-17 11:40:58 +01:00
entry_list = JournalEntry.objects.order_by('entry_date')
context = {'entry_list': entry_list}
return render(request, 'journaldecaisse/index.html', context)