3fe0a8799b6c1f9f6f133aa6640738c0bb77896e
[turniej.git] / turniej / views.py
1 from django.shortcuts import render
2 from poetry.models import Poem
3
4 def home(request):
5     last = Poem.objects.all().order_by('-created_at')[:10]
6     return render(request, "home.html", locals())