Closed qbey closed 2 weeks ago
After some reflexion, the use of a slug field raises to many problems without being really needed.
One problem is the slug is made from the group name, but we don't have unicity on this, so a user might be blocked without any clue.
We also want to allow group names to be reused (which is already allowed except for the automatic slug).
The unique ID that will be shared with Service Providers will be the PK/UUID.
FIXES https://github.com/numerique-gouv/people/issues/293
Remove the slug field of the Team model.
slug
Team
Purpose
After some reflexion, the use of a slug field raises to many problems without being really needed.
One problem is the slug is made from the group name, but we don't have unicity on this, so a user might be blocked without any clue.
We also want to allow group names to be reused (which is already allowed except for the automatic slug).
The unique ID that will be shared with Service Providers will be the PK/UUID.
FIXES https://github.com/numerique-gouv/people/issues/293
Proposal
Remove the
slug
field of theTeam
model.Team
model