def articles_from_same_day_2(self):
from django.db import connection<EOL>with connection.cursor() as cursor:<EOL><INDENT>cursor.execute("""<STR_LIT>""", [connection.ops.adapt_datefield_value(self.pub_date),<EOL>self.id])<EOL>return [self.__class__(*row) for row in cursor.fetchall()]<EOL><DEDENT>
Verbose version of get_articles_from_same_day_1, which does a custom
database query for the sake of demonstration.