rewrite 'suivi:details' template

This commit is contained in:
Arthur Gerbaud
2016-08-06 19:55:57 +02:00
parent aefeb2e349
commit e593981696
5 changed files with 34 additions and 95 deletions

View File

@@ -28,5 +28,5 @@ class SuiviSujetView(SuivisView, generic.DetailView):
def get_context_data(self, *args, **kwargs):
context = super().get_context_data(*args, **kwargs)
context['notes'] = self.object.notes.all()
context['notes'] = self.object.notes.all().order_by('created_date')
return context