Automatically create a unique slug for a model.
Note that you don’t need to do obj.slug = … since this method updates the instance’s slug field directly. All you usually need is: unique_slugify(obj, obj.title)
A frequent usage pattern is to override the save method of a model and call unique_slugify before the super(…).save() call.
Release files for django-unique-slugify 1.01
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-unique-slugify-1.01.tar.gz | 1.8 kB | Details |
Release files / django-unique-slugify-1.01.tar.gz
| Download URL | django-unique-slugify-1.01.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c62c94c09f15d7dc63db29c826db64eac698c243e00e782f68453bc23cb2dbfb
|
|
BLAKE2b-256 checksum How to use checksums |
1872e24a9e66caf58e292480fda6996ffb0ef6a67289bc900f99289ba4cb6ce9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |