feat(project_management): Add import_project permission and add api serializer

ref: #295 #301
This commit is contained in:
2024-09-18 13:20:44 +09:30
parent 3e56c9861c
commit f019c50e44
4 changed files with 110 additions and 6 deletions

View File

@ -21,6 +21,10 @@ class Project(ProjectCommonFieldsName):
'name',
]
permissions = [
('import_project', 'Can import a project'),
]
verbose_name = 'Project'
verbose_name_plural = 'Projects'
@ -178,6 +182,13 @@ class Project(ProjectCommonFieldsName):
)
fields_all: list = []
fields_import: list = []
def __str__(self):
return self.name