Improve SAS main view, and make some translations

This commit is contained in:
Skia
2017-01-10 23:32:17 +01:00
parent 3f6199f6c2
commit 881afd9e0a
3 changed files with 91 additions and 75 deletions

View File

@ -85,6 +85,7 @@ class SASMainView(FormView):
def get_context_data(self, **kwargs):
kwargs = super(SASMainView, self).get_context_data(**kwargs)
kwargs['root_file'] = SithFile.objects.filter(id=settings.SITH_SAS_ROOT_DIR_ID).first()
kwargs['latest'] = SithFile.objects.filter(is_in_sas=True, is_folder=True, is_moderated=True).order_by('-id')[:5]
return kwargs
class PictureView(CanViewMixin, DetailView, FormMixin):