diff options
author | luxagraf <sng@luxagraf.net> | 2025-03-23 09:12:17 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2025-03-23 09:12:17 -0500 |
commit | 1ddbab18a649a8da32d1e574b3f14f45975efabb (patch) | |
tree | 0069518448804bf35ac2919750e9c84e5eeeaaf8 /app/posts/build.py | |
parent | fa4f915ccf415136b7d4bb25f9ed84e4abe3b518 (diff) |
posts: added photo essay detail page and build
Diffstat (limited to 'app/posts/build.py')
-rw-r--r-- | app/posts/build.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/posts/build.py b/app/posts/build.py index fdfcd1a..ba0fe27 100644 --- a/app/posts/build.py +++ b/app/posts/build.py @@ -175,6 +175,18 @@ class BuildFilms(BuildNew): self.build_detail_view() +class BuildPhotoEssays(BuildNew): + + def get_model_queryset(self): + return self.model.objects.filter(post_type=PostType.PHOTO_ESSAY).filter(status__exact=1).order_by('-pub_date') + + def build(self): + self.build_list_view( + base_path=reverse("photo_essay:list"), + paginate_by=30 + ) + self.build_detail_view() + class BuildTrips(BuildNew): def get_model_queryset(self): |