fix: remove project slug (#340)

This commit is contained in:
pablohashescobar 2023-02-28 02:09:09 +05:30 committed by GitHub
parent 1255552ebe
commit 7b4d7f12f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)