Index 4 challenges

This commit is contained in:
teras 2017-10-08 16:30:58 +03:00
parent 9b75ce867d
commit 92151f3148

View File

@ -9,7 +9,7 @@ from .models import *
def index(request): def index(request):
if request.method == 'GET': if request.method == 'GET':
data = { data = {
'challenges': Challenge.objects.all() 'challenges': Challenge.objects.all()[:4]
} }
return render(request, 'index.html', data) return render(request, 'index.html', data)