Révision 3f6c77a1
Ajouté par Frédéric Péters il y a plus de 7 ans
corbo/views.py | ||
---|---|---|
132 | 132 |
|
133 | 133 |
def get_context_data(self, **kwargs): |
134 | 134 |
context = super(CategoryView, self).get_context_data(**kwargs) |
135 |
context['announces'] = self.object.announce_set.all() |
|
135 |
context['announces'] = self.object.announce_set.all().order_by( |
|
136 |
'-publication_time', '-ctime') |
|
136 | 137 |
return context |
137 | 138 |
|
138 | 139 |
|
Formats disponibles : Unified diff
manage: order announces chronologically (#13877)