Removed unused variable.

This commit is contained in:
Tim Graham 2014-06-25 08:37:12 -04:00
parent 9385aa3198
commit e769846eec
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class DeferRegressionTest(TestCase):
def test_proxy_model_defer_with_selected_related(self):
# Regression for #22050
item = Item.objects.create(name="first", value=47)
related = RelatedItem.objects.create(item=item)
RelatedItem.objects.create(item=item)
# Defer fields with only()
obj = ProxyRelated.objects.all().select_related().only('item__name')[0]
with self.assertNumQueries(0):