##// END OF EJS Templates
Speed up referenced posts getting a bit
neko259 -
r397:7372aab3 default
parent child Browse files
Show More
@@ -269,4 +269,4 b' class Post(models.Model):'
269 return self.referenced_posts.order_by('id')
269 return self.referenced_posts.order_by('id')
270
270
271 def is_referenced(self):
271 def is_referenced(self):
272 return self.referenced_posts.count() > 0
272 return self.referenced_posts.all().exists()
General Comments 0
You need to be logged in to leave comments. Login now