async def test_distinct(self):
    (await IntFields.filter(intnum__gte=70).update(intnum_null=80))
    (await IntFields.filter(intnum_null__isnull=True).update(intnum_null=(- 1)))
    self.assertEqual((await IntFields.all().order_by('intnum_null').distinct().values_list('intnum_null', flat=True)), [(- 1), 80])
    self.assertEqual((await IntFields.all().order_by('intnum_null').distinct().values('intnum_null')), [{'intnum_null': (- 1)}, {'intnum_null': 80}])
async def test_distinct(self):
    (await IntFields.filter(intnum__gte=70).update(intnum_null=80))
    (await IntFields.filter(intnum_null__isnull=True).update(intnum_null=(- 1)))
    self.assertEqual((await IntFields.all().order_by('intnum_null').distinct().values_list('intnum_null', flat=True)), [(- 1), 80])
    self.assertEqual((await IntFields.all().order_by('intnum_null').distinct().values('intnum_null')), [{'intnum_null': (- 1)}, {'intnum_null': 80}])