#42 Tests for Level-System / Homepage

This commit is contained in:
2021-12-31 00:35:19 +01:00
parent c6a28c7b66
commit 399fa70ab6
2 changed files with 47 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ class HomeView(IsAuthenticatedMixin, View):
return render(request, 'home.html', context)
def handle_no_permission(self):
place_list = Place.objects.all().order_by('-submitted_when')[:5]
place_list = Place.objects.filter(level=1)[:5]
context = {
'place_list': place_list
}