# HG changeset patch # User neko259 # Date 2015-04-08 09:19:39 # Node ID efaf1251eb85fa29ced157f756663fa88db9de96 # Parent d6ba9a1d1f08ba6ce2ebe1f22fce90a615f139ad Fixed issue with deferring a field no more exists diff --git a/boards/models/thread.py b/boards/models/thread.py --- a/boards/models/thread.py +++ b/boards/models/thread.py @@ -133,7 +133,7 @@ class Thread(models.Model): query = Post.objects.filter(threads__in=[self]) query = query.order_by('pub_time').prefetch_related('images', 'thread', 'threads') if view_fields_only: - query = query.defer('poster_user_agent') + query = query.defer('poster_ip') return query.all() def get_replies_with_images(self, view_fields_only=False):