chore: project identifiers (#1636)

This commit is contained in:
Nikhil 2023-07-24 12:19:11 +05:30 committed by GitHub
parent 27402b52b6
commit 4ee161bae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ class Project(BaseModel):
"db.WorkSpace", on_delete=models.CASCADE, related_name="workspace_project" "db.WorkSpace", on_delete=models.CASCADE, related_name="workspace_project"
) )
identifier = models.CharField( identifier = models.CharField(
max_length=5, max_length=12,
verbose_name="Project Identifier", verbose_name="Project Identifier",
) )
default_assignee = models.ForeignKey( default_assignee = models.ForeignKey(
@ -168,7 +168,7 @@ class ProjectIdentifier(AuditModel):
project = models.OneToOneField( project = models.OneToOneField(
Project, on_delete=models.CASCADE, related_name="project_identifier" Project, on_delete=models.CASCADE, related_name="project_identifier"
) )
name = models.CharField(max_length=10) name = models.CharField(max_length=12)
class Meta: class Meta:
unique_together = ["name", "workspace"] unique_together = ["name", "workspace"]