Skip to main content

Intelligent slug computing

Project description

A slug field that automatically calculates its value.

Options

All options that are available for django.db.models.SlugField are also available AISlugField.

  • populate_from: Property on the model that is the base for the computed slug, defaults to '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

  • queryset: Queryset to use for making the slug unique within the queryset scope, default value is the default manager

  • update: If false the slug will not be updated from populate_from on subsequent saves.

Project details


Download files

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

Source Distribution

django-aislug-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file django-aislug-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django-aislug-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2b363244117c9801e9edb911c27d8e38fc6ed198349e1f84a25ce7d2ca25dc66
MD5 b5fa74e67de4a84ddecab1ea106f3682
BLAKE2b-256 ef656dd50841f3cb2d2eedcb025122877fbf48c37187f00fe176db82d226c494

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page