##// END OF EJS Templates
Fixed issue with deferring a field no more exists
neko259 -
r1079:efaf1251 default
parent child Browse files
Show More
@@ -133,7 +133,7 b' class Thread(models.Model):'
133 query = Post.objects.filter(threads__in=[self])
133 query = Post.objects.filter(threads__in=[self])
134 query = query.order_by('pub_time').prefetch_related('images', 'thread', 'threads')
134 query = query.order_by('pub_time').prefetch_related('images', 'thread', 'threads')
135 if view_fields_only:
135 if view_fields_only:
136 query = query.defer('poster_user_agent')
136 query = query.defer('poster_ip')
137 return query.all()
137 return query.all()
138
138
139 def get_replies_with_images(self, view_fields_only=False):
139 def get_replies_with_images(self, view_fields_only=False):
General Comments 0
You need to be logged in to leave comments. Login now