AutoSlugField, that can recreate unique slugs during saving.
|Reported by:||Ciantic||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:|
|Cc:||jacob@…, simon@…, kmike84@…||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||yes||Patch needs improvement:||yes|
I would like to see something that can create unique slugs during saving of the model like AutoSlugField by GaretJax in djangosnippets. That specific implementation might be too simple and not enough configurable, but if it were improved a little perhaps? There are several slug hacks in djangosnippets alone that tries to implement unique slugs, with varying results.
Naturally it should be part of Django since it is used by almost every project and every model. Housing fleet of utility libraries is not the nicest way to implement programs, I have stumbled with that a lot in the past.
Change History (13)
comment:1 Changed 5 years ago by Ciantic
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:3 follow-up: ↓ 5 Changed 5 years ago by russellm
- Has patch set
- milestone 1.2 deleted
- Needs tests set
- Patch needs improvement set
- Triage Stage changed from Unreviewed to Design decision needed
- Version 1.2-alpha deleted
comment:6 Changed 4 years ago by simon29
- Cc simon@… added
- Component changed from Uncategorized to Database layer (models, ORM)
- Needs documentation set