posts sorted by public date or event start depend on post type

This commit is contained in:
2021-04-13 09:45:13 +00:00
parent 9a1b1a0884
commit bac25e25c7
4 changed files with 29 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ logger = logging.getLogger(__name__)
def index(request):
"Index von aktuellen Posts"
posts = deque(Post.objects.get_visible_articles().order_by("-public_date"))
posts = deque(Post.objects.get_date_sorted_list())
taglist = map(lambda post: post.tags, posts)