@@ -602,7 +602,7 @@ class ObjectFieldTypeTestCase(FieldTypeTestCase):
602
602
def setUp (self ):
603
603
"""Set up test data."""
604
604
super ().setUp ()
605
- self .device_content_type = self .get_device_content_type ()
605
+ self .device_object_type = self .get_device_object_type ()
606
606
607
607
def test_object_field_creation (self ):
608
608
"""Test creating an object field."""
@@ -611,11 +611,11 @@ def test_object_field_creation(self):
611
611
name = "device" ,
612
612
label = "Device" ,
613
613
type = "object" ,
614
- related_object_type = self .device_content_type
614
+ related_object_type = self .device_object_type
615
615
)
616
616
617
617
self .assertEqual (field .type , "object" )
618
- self .assertEqual (field .related_object_type , self .device_content_type )
618
+ self .assertEqual (field .related_object_type , self .device_object_type )
619
619
620
620
def test_object_field_model_generation (self ):
621
621
"""Test object field model generation."""
@@ -624,7 +624,7 @@ def test_object_field_model_generation(self):
624
624
name = "device" ,
625
625
label = "Device" ,
626
626
type = "object" ,
627
- related_object_type = self .device_content_type
627
+ related_object_type = self .device_object_type
628
628
)
629
629
field # To silence ruff error
630
630
@@ -661,7 +661,7 @@ class MultiObjectFieldTypeTestCase(FieldTypeTestCase):
661
661
def setUp (self ):
662
662
"""Set up test data."""
663
663
super ().setUp ()
664
- self .device_content_type = self .get_device_content_type ()
664
+ self .device_object_type = self .get_device_object_type ()
665
665
666
666
def test_multiobject_field_creation (self ):
667
667
"""Test creating a multiobject field."""
@@ -670,11 +670,11 @@ def test_multiobject_field_creation(self):
670
670
name = "devices" ,
671
671
label = "Devices" ,
672
672
type = "multiobject" ,
673
- related_object_type = self .device_content_type
673
+ related_object_type = self .device_object_type
674
674
)
675
675
676
676
self .assertEqual (field .type , "multiobject" )
677
- self .assertEqual (field .related_object_type , self .device_content_type )
677
+ self .assertEqual (field .related_object_type , self .device_object_type )
678
678
679
679
def test_multiobject_field_model_generation (self ):
680
680
"""Test multiobject field model generation."""
@@ -683,7 +683,7 @@ def test_multiobject_field_model_generation(self):
683
683
name = "devices" ,
684
684
label = "Devices" ,
685
685
type = "multiobject" ,
686
- related_object_type = self .device_content_type
686
+ related_object_type = self .device_object_type
687
687
)
688
688
field # To silence ruff error
689
689
0 commit comments