mirror of
https://github.com/django/django.git
synced 2025-10-27 23:56:08 +00:00
Fixed #24099 -- Removed contenttype.name deprecated field
This finsishes the work started on #16803. Thanks Simon Charette, Tim Graham and Collin Anderson for the reviews.
This commit is contained in:
committed by
Markus Holtermann
parent
374c2419e5
commit
b4ac232907
@@ -52,24 +52,20 @@ class LoadDataWithNaturalKeysAndMultipleDatabasesTestCase(TestCase):
|
||||
default_objects = [
|
||||
ContentType.objects.db_manager('default').create(
|
||||
model='examplemodela',
|
||||
name='example model a',
|
||||
app_label='app_a',
|
||||
),
|
||||
ContentType.objects.db_manager('default').create(
|
||||
model='examplemodelb',
|
||||
name='example model b',
|
||||
app_label='app_b',
|
||||
),
|
||||
]
|
||||
other_objects = [
|
||||
ContentType.objects.db_manager('other').create(
|
||||
model='examplemodelb',
|
||||
name='example model b',
|
||||
app_label='app_b',
|
||||
),
|
||||
ContentType.objects.db_manager('other').create(
|
||||
model='examplemodela',
|
||||
name='example model a',
|
||||
app_label='app_a',
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user