Stripped down unauth_home template, limited places to 5.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user