Index 4 challenges
This commit is contained in:
parent
9b75ce867d
commit
92151f3148
@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user