Remove unused function in tests
This commit is contained in:
@@ -997,17 +997,3 @@ class PolymorphicTests(TransactionTestCase):
|
||||
MultiTableDerived.objects.bulk_create([
|
||||
MultiTableDerived(field1='field1', field2='field2')
|
||||
])
|
||||
|
||||
|
||||
def qrepr(data):
|
||||
"""
|
||||
Ensure consistent repr() output for the QuerySet object.
|
||||
"""
|
||||
if isinstance(data, QuerySet):
|
||||
if django.VERSION < (1, 11):
|
||||
# Django 1.10 still shows "<QuerySet [", not taking the actual type into account.
|
||||
return '<{0} {1}'.format(data.__class__.__name__, repr(data)[10:])
|
||||
else:
|
||||
return repr(data)
|
||||
|
||||
return repr(data)
|
||||
|
||||
Reference in New Issue
Block a user