Added place_list sorting to sort by name.

This commit is contained in:
Marcus Scholz 2020-08-22 02:59:04 +02:00
parent 636bb880c1
commit 7cb8bc6bac

View File

@ -53,6 +53,7 @@ class PlaceListView(IsAuthenticated, ListView):
paginate_by = 5 paginate_by = 5
model = Place model = Place
template_name = 'place/place_list.html' template_name = 'place/place_list.html'
ordering = ['name']
class PlaceDetailView(IsAuthenticated, View): class PlaceDetailView(IsAuthenticated, View):
def get(self, request, pk): def get(self, request, pk):