#42 Tests for Level-System / Homepage
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user