AutoSlugField, that can recreate unique slugs during saving.
|Reported by:||Jari Pennanen||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 (14)
comment:3 follow-up: 5 Changed 7 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Unreviewed → Design decision needed|
comment:6 Changed 6 years ago by
|Component:||Uncategorized → Database layer (models, ORM)|