fix: project name uniqueness in workspace

This commit is contained in:
pablohashescobar 2022-12-13 23:47:32 +05:30
parent 5c2d0a829a
commit 668c6c2d2d

View File

@ -59,7 +59,7 @@ class Project(BaseModel):
return f"{self.name} <{self.workspace.name}>"
class Meta:
unique_together = ["identifier", "workspace"]
unique_together = [["identifier", "workspace"], ["name", "workspace"]]
verbose_name = "Project"
verbose_name_plural = "Projects"
db_table = "project"