Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Intelligent slug computing

Project Description

A slug field that automatically calculates its value from another attribute or method.


django-aislug depends on django-stringfield.


Using pip to install will install django-aislug and all of its dependencies:

pip install django-aislug


All options that are available for django.db.models.CharField are also available to AISlugField. There are some additional options:

  • populate_from: Property or method on the model that is the base for the computed slug.
    • Default 'title'
  • slugify: User defined slugify callback function to compute the slug from populate_from
  • invalid: List or function that returns a list of invalid values
    • Default: []
  • update: If False the slug will not be updated from populate_from on subsequent saves.
    • Default: False
  • unique_for: A list of fields to make this slug unique for.
    • Default: []

Release History

This version
History Node


History Node


History Node


History Node


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
(4.3 kB) Copy SHA256 Hash SHA256
Source None Jun 14, 2011

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers