diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py
index c75ffe5..e988a06 100644
a
|
b
|
class AdminFormfieldForDBFieldTests(TestCase):
|
54 | 54 | # Check that we got a field of the right type |
55 | 55 | self.assertTrue( |
56 | 56 | isinstance(widget, widgetclass), |
57 | | "Wrong widget for %s.%s: expected %s, got %s" % \ |
| 57 | "Wrong widget for %s.%s: expected %s, got %s" % |
58 | 58 | (model.__class__.__name__, fieldname, widgetclass, type(widget)) |
59 | 59 | ) |
60 | 60 | |
diff --git a/tests/distinct_on_fields/tests.py b/tests/distinct_on_fields/tests.py
index 392178d..5ce3ee4 100644
a
|
b
|
class DistinctOnTests(TestCase):
|
51 | 51 | ['<Staff: p1>', '<Staff: p1>', '<Staff: p2>', '<Staff: p3>'], |
52 | 52 | ), |
53 | 53 | ( |
54 | | Celebrity.objects.filter(fan__in=[self.fan1, self.fan2, self.fan3]).\ |
| 54 | Celebrity.objects.filter(fan__in=[self.fan1, self.fan2, self.fan3]). |
55 | 55 | distinct('name').order_by('name'), |
56 | 56 | ['<Celebrity: c1>', '<Celebrity: c2>'], |
57 | 57 | ), |
58 | 58 | # Does combining querysets work? |
59 | 59 | ( |
60 | | (Celebrity.objects.filter(fan__in=[self.fan1, self.fan2]).\ |
| 60 | (Celebrity.objects.filter(fan__in=[self.fan1, self.fan2]). |
61 | 61 | distinct('name').order_by('name') |
62 | | |Celebrity.objects.filter(fan__in=[self.fan3]).\ |
| 62 | |Celebrity.objects.filter(fan__in=[self.fan3]). |
63 | 63 | distinct('name').order_by('name')), |
64 | 64 | ['<Celebrity: c1>', '<Celebrity: c2>'], |
65 | 65 | ), |