Remove path display from index

This commit is contained in:
George Lacey 2021-06-10 06:28:15 +01:00
parent 6cd197556c
commit 2d0aa58c77

View File

@ -1,14 +1,12 @@
from django.shortcuts import render, get_object_or_404 from django.shortcuts import render, get_object_or_404
from ..models import Repo, Location from ..models import Repo
def index(request): def index(request):
repo_list = Repo.objects.all() repo_list = Repo.objects.all()
location_list = Location.objects.all()
context = { context = {
'repo_list': repo_list, 'repo_list': repo_list,
'location_list': location_list,
} }
return render(request, 'borg/index.html', context) return render(request, 'borg/index.html', context)