change annoucenment order
This commit is contained in:
parent
188e62e589
commit
013d6d9320
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,9 @@ class AnnouncementListView(ListView):
|
|||
# paginate_by = 1
|
||||
template_name = "management/list.html"
|
||||
|
||||
def get_queryset(self):
|
||||
return Announcement.objects.all().order_by('-pk')
|
||||
|
||||
|
||||
@method_decorator(decorators, name='dispatch')
|
||||
class AnnouncementDeleteView(DeleteView):
|
||||
|
|
Loading…
Add table
Reference in a new issue