✨(models) add slug field to Team model
Add slug field for team objects. Unique slug based on team names, in an effort to avoid duplicates.
This commit is contained in:
committed by
Marie
parent
c117f67952
commit
d2bf44d2fd
@@ -108,4 +108,5 @@ class TeamAdmin(admin.ModelAdmin):
|
||||
"created_at",
|
||||
"updated_at",
|
||||
)
|
||||
prepopulated_fields = {"slug": ("name",)}
|
||||
search_fields = ("name",)
|
||||
|
||||
Reference in New Issue
Block a user