Remove unused function in tests
parent
6fb34a0a44
commit
3f6d94139c
|
|
@ -997,17 +997,3 @@ class PolymorphicTests(TransactionTestCase):
|
||||||
MultiTableDerived.objects.bulk_create([
|
MultiTableDerived.objects.bulk_create([
|
||||||
MultiTableDerived(field1='field1', field2='field2')
|
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)
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue