def articles_from_same_day_2(self):
        from django.db import connection
        cursor = connection.cursor()
        cursor.execute("""
            SELECT id, headline, pub_date
            FROM custom_methods_article
            WHERE pub_date = %s
                AND id != %s""", [connection.ops.value_to_db_date(self.pub_date),
                                  self.id])
        return [self.__class__(*row) for row in cursor.fetchall()]
The serialization context differs between listing and detail views.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/modeltests/custom_methods/models.py/Article.articles_from_same_day_2--crossover with--dataset/ETHPy150Open torchbox/wagtail/wagtail/api/v2/endpoints.py/BaseAPIEndpoint.get_serializer_context