mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Removed unused local variables in tests.
This commit is contained in:
@@ -16,8 +16,8 @@ class ModelInheritanceSelectRelatedTests(TestCase):
|
||||
r2 = Restaurant.objects.create(
|
||||
name="Craft", serves_sushi=False, serves_steak=True
|
||||
)
|
||||
p1 = Person.objects.create(name="John", favorite_restaurant=r1)
|
||||
p2 = Person.objects.create(name="Jane", favorite_restaurant=r2)
|
||||
Person.objects.create(name="John", favorite_restaurant=r1)
|
||||
Person.objects.create(name="Jane", favorite_restaurant=r2)
|
||||
|
||||
self.assertQuerysetEqual(
|
||||
Person.objects.order_by("name").select_related(), [
|
||||
|
||||
Reference in New Issue
Block a user