Remove unused function in tests

fix_request_path_info
Charlie Denton 2017-11-03 23:28:07 +00:00
parent 6fb34a0a44
commit 3f6d94139c
No known key found for this signature in database
GPG Key ID: 5BBA1783DA191613
1 changed files with 0 additions and 14 deletions

View File

@ -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)