test(api): Ensure that model notes is added to model create for api field tests

ref: #741
This commit is contained in:
2025-05-05 17:49:17 +09:30
parent b7cd9ea75c
commit dbaff89b8d

View File

@ -109,6 +109,14 @@ class APIFieldsTestCases:
'organization': request.cls.organization
})
if 'model_notes' in self.model().fields:
request.cls.kwargs_create_item.update({
'model_notes': 'notes',
})
view_permissions = Permission.objects.get(
codename = 'view_' + request.cls.model._meta.model_name,
content_type = ContentType.objects.get(