feat(project_management): Add import_project permission and add api serializer
ref: #295 #301
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user