diff options
Diffstat (limited to 'app/posts/build.py')
-rw-r--r-- | app/posts/build.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/posts/build.py b/app/posts/build.py index b49b925..7f5dc7b 100644 --- a/app/posts/build.py +++ b/app/posts/build.py @@ -150,3 +150,16 @@ class BuildFriends(BuildNew): ) self.build_detail_view() self.build_feed("friends:feed") + + +class BuildFilms(BuildNew): + + def get_model_queryset(self): + return self.model.objects.filter(post_type=PostType.FILM).filter(status__exact=1).order_by('-pub_date') + + def build(self): + self.build_list_view( + base_path=reverse("films:list"), + paginate_by=30 + ) + self.build_detail_view() |