Stripped down unauth_home template, limited places to 5.

This commit is contained in:
2020-09-02 00:26:03 +02:00
parent 91c888db8f
commit b95e565bef
2 changed files with 32 additions and 1 deletions

View File

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