Fixes #11431 - Disallow changing customfield type after creation (#11449)

* Disallow changing customfield type after creation

* Fix test_api.CustomFieldTest

---------

Co-authored-by: kkthxbye-code <>
This commit is contained in:
kkthxbye
2023-04-10 16:13:08 +02:00
committed by GitHub
parent 768d6f624e
commit 278f2b173a
3 changed files with 18 additions and 0 deletions

View File

@@ -102,6 +102,11 @@ class CustomFieldTest(APIViewTestCases.APIViewTestCase):
bulk_update_data = {
'description': 'New description',
}
update_data = {
'content_types': ['dcim.device'],
'name': 'New_Name',
'description': 'New description',
}
@classmethod
def setUpTestData(cls):