django-unique-slugify-1.01
توضیحات
Automatically create a unique slug for a model.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-unique-slugify-1.01 |
| نام | django-unique-slugify |
| نسخه کتابخانه | 1.01 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | SmileyChris (packaged by Philip Gatt) |
| ایمیل نویسنده | gattster@gmail.com |
| آدرس صفحه اصلی | http://github.com/defcube/django-unique-slugify |
| آدرس اینترنتی | https://pypi.org/project/django-unique-slugify/ |
| مجوز | UNKNOWN |
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.
نحوه نصب
نصب پکیج whl django-unique-slugify-1.01:
pip install django-unique-slugify-1.01.whl
نصب پکیج tar.gz django-unique-slugify-1.01:
pip install django-unique-slugify-1.01.tar.gz