Index 4 challenges
This commit is contained in:
parent
9b75ce867d
commit
92151f3148
@ -9,7 +9,7 @@ from .models import *
|
||||
def index(request):
|
||||
if request.method == 'GET':
|
||||
data = {
|
||||
'challenges': Challenge.objects.all()
|
||||
'challenges': Challenge.objects.all()[:4]
|
||||
}
|
||||
return render(request, 'index.html', data)
|
||||
|
||||
|
Reference in New Issue
Block a user