feat(project_management): add project type field to project model

ref: #294 #298
This commit is contained in:
2024-09-17 13:11:24 +09:30
parent e9b122cf8c
commit 34b85441e2
3 changed files with 35 additions and 2 deletions

View File

@ -8,6 +8,7 @@ from core.models.ticket.ticket_enum_values import TicketValues
from .project_common import ProjectCommonFieldsName
from .project_states import ProjectState
from .project_types import ProjectType
class Project(ProjectCommonFieldsName):
@ -74,14 +75,21 @@ class Project(ProjectCommonFieldsName):
state = models.ForeignKey(
ProjectState,
blank= False,
help_text = 'Staate of the project',
help_text = 'State of the project',
on_delete=models.SET_NULL,
null = True,
verbose_name ='Project State'
)
# project_type
project_type = models.ForeignKey(
ProjectType,
blank= False,
help_text = 'Type of project',
on_delete=models.SET_NULL,
null = True,
verbose_name ='Project Type'
)
code = models.CharField(
blank = True,