Show More
@@ -189,8 +189,7 b' class Thread(models.Model):' | |||||
189 | """ |
|
189 | """ | |
190 | Gets replies with only fields that are used for viewing. |
|
190 | Gets replies with only fields that are used for viewing. | |
191 | """ |
|
191 | """ | |
192 |
return self.get_replies().defer(' |
|
192 | return self.get_replies().defer('text', 'last_edit_time', 'version') | |
193 | 'version') |
|
|||
194 |
|
193 | |||
195 | def get_top_level_replies(self) -> QuerySet: |
|
194 | def get_top_level_replies(self) -> QuerySet: | |
196 | return self.get_replies().exclude(refposts__threads__in=[self]) |
|
195 | return self.get_replies().exclude(refposts__threads__in=[self]) |
General Comments 0
You need to be logged in to leave comments.
Login now