Commit 6b854b18 authored by fred.perso's avatar fred.perso

Order place management events by descending date

parent 8fd3d33e
......@@ -231,7 +231,7 @@ class PlaceDetail(PlaceViewAuthMixin, DetailView):
context['placemanagementicon'] = 'fi-checkbox'
context['placemanagementtitle'] = _('Actions de gestion')
context['placemanagementcount'] = PlaceManagement.objects.filter(place=pk).count()
context['placemanagementtable'] = PlaceManagementTable(PlaceManagement.objects.filter(place=pk))
context['placemanagementtable'] = PlaceManagementTable(PlaceManagement.objects.filter(place=pk).order_by('-date'))
context['placemanagementcreateurl'] = '{% url \'management:management_create\' pk=object.pk %}'
return context
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment