You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
311 B
10 lines
311 B
from django.shortcuts import render, HttpResponse
|
|
from download.models import DownloadAttempt
|
|
|
|
# Create your views here.
|
|
def index(request):
|
|
# TODO: Allow search
|
|
return render(request, 'viewrequests/requests.html', {
|
|
'requests': DownloadAttempt.objects.all().order_by('-timestamp')[:100]
|
|
})
|