

def test_raw_sql(self):
    dt = datetime.datetime(2011, 9, 1, 13, 20, 30)
    event = Event.objects.create(dt=self)
    self.assertQuerysetEqual(Event.objects.raw('SELECT * FROM timezones_event WHERE dt = %s', [dt]), [event], transform=(lambda d: d))

dataset/ETHPy150Open django/django/tests/timezones/tests.py LegacyDatabaseTests.test_raw_sql/VarMisuse@39/42 `dt`->`self`