mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-16 09:18:10 +00:00
Deconflict model_type fields
This commit is contained in:
@@ -29,6 +29,9 @@ def get_spectacular_settings():
|
|||||||
'TemplateModelTypeEnum': 'report.models.ReportTemplateBase.ModelChoices',
|
'TemplateModelTypeEnum': 'report.models.ReportTemplateBase.ModelChoices',
|
||||||
'AttachmentModelTypeEnum': 'common.models.Attachment.ModelChoices',
|
'AttachmentModelTypeEnum': 'common.models.Attachment.ModelChoices',
|
||||||
'DataImportSessionModelTypeEnum': 'importer.models.DataImportSession.ModelChoices',
|
'DataImportSessionModelTypeEnum': 'importer.models.DataImportSession.ModelChoices',
|
||||||
|
# Deconflict fields which use model_type ContentType fields
|
||||||
|
'common.models.Parameter.model_type': 'ParameterModelTypeEnum',
|
||||||
|
'common.models.ParameterTemplate.model_type': 'ParameterTemplateModelTypeEnum',
|
||||||
# Allauth
|
# Allauth
|
||||||
'UnauthorizedStatus': [[401, 401]],
|
'UnauthorizedStatus': [[401, 401]],
|
||||||
'IsTrueEnum': [[True, True]],
|
'IsTrueEnum': [[True, True]],
|
||||||
|
|||||||
Reference in New Issue
Block a user