Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Automatically create a unique slug for a model.

Project description

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.

Project details


Release history Release notifications

This version
History Node

1.01

History Node

1.00

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-unique-slugify-1.01.tar.gz (1.8 kB) Copy SHA256 hash SHA256 Source None Sep 14, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page