mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: remove project slug (#340)
This commit is contained in:
parent
1255552ebe
commit
7b4d7f12f5
@ -46,7 +46,6 @@ class Project(BaseModel):
|
|||||||
max_length=5,
|
max_length=5,
|
||||||
verbose_name="Project Identifier",
|
verbose_name="Project Identifier",
|
||||||
)
|
)
|
||||||
slug = models.SlugField(max_length=100, blank=True)
|
|
||||||
default_assignee = models.ForeignKey(
|
default_assignee = models.ForeignKey(
|
||||||
settings.AUTH_USER_MODEL,
|
settings.AUTH_USER_MODEL,
|
||||||
on_delete=models.CASCADE,
|
on_delete=models.CASCADE,
|
||||||
@ -77,7 +76,6 @@ class Project(BaseModel):
|
|||||||
ordering = ("-created_at",)
|
ordering = ("-created_at",)
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
self.slug = slugify(self.name)
|
|
||||||
self.identifier = self.identifier.strip().upper()
|
self.identifier = self.identifier.strip().upper()
|
||||||
return super().save(*args, **kwargs)
|
return super().save(*args, **kwargs)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user