8 lines
No EOL
294 B
Python
8 lines
No EOL
294 B
Python
from django.http import HttpResponse
|
|
from .models import JournalEntry
|
|
from django.shortcuts import render
|
|
|
|
def index(request):
|
|
entry_list = JournalEntry.objects.order_by('entry_date')
|
|
context = {'entry_list': entry_list}
|
|
return render(request, 'journaldecaisse/index.html', context) |