'Verbose version of get_articles_from_same_day_1, which does a custom
database query for the sake of demonstration.'

def articles_from_same_day_2(self):

    from django.db import connection
    cursor = connection.cursor()
    cursor.execute('\n                                                SELECT    id,    headline,    pub_date\n                                                FROM    custom_methods_article\n                                                WHERE    pub_date    =    %s\n                                                                AND    id    !=    %s', [connection.ops.value_to_db_date(self.pub_date), self.id])
    return [self.__class__(*row) for row in cursor.fetchall()]
