File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ class SidebarLatestBlock(AbstractArticleList):
135
135
def get_context (self , value , parent_context = None ):
136
136
context = super ().get_context (value , parent_context = parent_context )
137
137
context ['title' ] = value ["title" ]
138
- context ['articles' ] = ArticlePage .objects .live ().public ().order_by ('-first_published_at' )[:5 ]
138
+ context ['articles' ] = ArticlePage .objects .live ().public ().exclude ( current_section = "pages" ). order_by ('-first_published_at' )[:5 ]
139
139
return context
140
140
141
141
class SidebarManualArticles (AbstractArticleList ):
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def feed_extra_kwargs(self, obj):
63
63
"image_link" : 'https://ubyssey.ca' }
64
64
65
65
def items (self , section ):
66
- return ArticlePage .objects .live ().public ().order_by ('-explicit_published_at' )[:self .max_items ]
66
+ return ArticlePage .objects .live ().public ().exclude ( current_section = "pages" ). order_by ('-explicit_published_at' )[:self .max_items ]
67
67
# .get_frontpage(limit=self.max_items)
68
68
69
69
def item_title (self , item ):
You can’t perform that action at this time.
0 commit comments