0001-manage-order-announces-chronologically-13877.patch
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 | |
139 |
- |