Show More
@@ -193,7 +193,9 b' class Post(models.Model, Viewable):' | |||||
193 | return 'P#{}/{}'.format(self.id, self.title) |
|
193 | return 'P#{}/{}'.format(self.id, self.title) | |
194 |
|
194 | |||
195 | def get_referenced_posts(self): |
|
195 | def get_referenced_posts(self): | |
196 | return self.referenced_posts.order_by('pub_time') |
|
196 | threads = self.get_threads().all() | |
|
197 | return self.referenced_posts.filter(threads__in=threads)\ | |||
|
198 | .order_by('pub_time').distinct().all() | |||
197 |
|
199 | |||
198 | def get_title(self) -> str: |
|
200 | def get_title(self) -> str: | |
199 | """ |
|
201 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now