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 7f5dc7b..e5dc1ed 100644 --- a/app/posts/build.py +++ b/app/posts/build.py @@ -163,3 +163,16 @@ class BuildFilms(BuildNew): paginate_by=30 ) self.build_detail_view() + + +class BuildTrips(BuildNew): + + def get_model_queryset(self): + return self.model.objects.all() + + def build(self): + self.build_list_view( + base_path=reverse("trips:list"), + paginate_by=30 + ) + self.build_detail_view() |