fix: project name uniqueness in workspace
This commit is contained in:
parent
5c2d0a829a
commit
668c6c2d2d
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue