diff --git a/src/backend/core/admin.py b/src/backend/core/admin.py index 075d8c2f4..5ab86bb3d 100644 --- a/src/backend/core/admin.py +++ b/src/backend/core/admin.py @@ -105,8 +105,8 @@ class TeamAdmin(admin.ModelAdmin): inlines = (TeamAccessInline,) list_display = ( "name", + "slug", "created_at", "updated_at", ) - prepopulated_fields = {"slug": ("name",)} search_fields = ("name",) diff --git a/src/backend/core/models.py b/src/backend/core/models.py index d2889ece3..f9f7cdeee 100644 --- a/src/backend/core/models.py +++ b/src/backend/core/models.py @@ -316,7 +316,7 @@ class Team(BaseModel): """ name = models.CharField(max_length=100) - slug = models.SlugField(max_length=100, unique=True, null=False) + slug = models.SlugField(max_length=100, unique=True, null=False, editable=False) users = models.ManyToManyField( User,