fix the order when getting next or prev post and at the post view
This commit is contained in:
@@ -37,7 +37,7 @@ class PostManager(PublishedManager, models.Manager):
|
||||
When(post_type="F", then="event_start__date"),
|
||||
)
|
||||
)
|
||||
return qs.order_by("-date")
|
||||
return qs.order_by("-date", "-id")
|
||||
|
||||
def date_sorted_list(self, public=True):
|
||||
return self.published(public)
|
||||
@@ -76,7 +76,7 @@ class ArticleManager(PublishedManager, models.Manager):
|
||||
When(post_type="E", then="event_start__date"),
|
||||
)
|
||||
)
|
||||
return qs.order_by("-date")
|
||||
return qs.order_by("-date", "-id")
|
||||
|
||||
def date_sorted_list(self, public=True):
|
||||
return self.published(public)
|
||||
|
||||
Reference in New Issue
Block a user