Commit 874dfa6c authored by Skia's avatar Skia

sas/views: change categories ordering

parent b5aee625
Pipeline #1474 canceled with stage
......@@ -99,7 +99,7 @@ class SASMainView(FormView):
def get_context_data(self, **kwargs):
kwargs = super(SASMainView, self).get_context_data(**kwargs)
kwargs['categories'] = Album.objects.filter(parent__id=settings.SITH_SAS_ROOT_DIR_ID).order_by('date')
kwargs['categories'] = Album.objects.filter(parent__id=settings.SITH_SAS_ROOT_DIR_ID).order_by('id')
kwargs['latest'] = Album.objects.filter(is_moderated=True).order_by('-id')[:5]
return kwargs
......
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