test(api): Ensure that model notes is added to model create for api field tests
ref: #741
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user