Beispiel #1
0
 def get_queryset(self):
     return Folder.foruser(self.request.user)
Beispiel #2
0
 def get_context_data(self, *args, **kwargs):
     ctx = super(TemplateView, self).get_context_data(*args, **kwargs)
     ctx['folders'] = Folder.foruser(self.request.user).filter(level__lte=3)
     return ctx