##// END OF EJS Templates
Include poster IP in thead loading because it is shown for moderator
neko259 -
r1671:f5ce8715 default
parent child Browse files
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('poster_ip', 'text', 'last_edit_time',
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