django-autoslug-field
AutoSlugField for Django based on django-extensions AutoSlugField, adds option to track foreignkey/parent field for slug.
Installation
Install django-autoslug-field like you would install any other pypi package:
pip install django-autoslug-field
Configuration and usage
add django_autoslug to the list of INSTALLED_APPS in your settings.py
use in models.py:
from django_autoslug.fields import AutoSlugField ... class MyModel(models.Model): lang = models.CharField(_('lang'), max_length=50, choices=settings.LANGUAGES) title = models.CharField(_('title'), max_length=255) parent = models.ForeignKey('MyModel', blank=True, null=True) slug = AutoSlugField(populate_from=('title',), recursive='parent', prefix_from=('lang',), unique=True, max_length=255, overwrite=True)install http://pypi.python.org/pypi/pytils if you need russian translit support
Metadata
Release files for django-autoslug-field 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-autoslug-field-0.2.3.tar.gz | 6.9 kB | Without provenance | Details |
Release files / django-autoslug-field-0.2.3.tar.gz
| Download URL | django-autoslug-field-0.2.3.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
584a207871f9ddbe814d0918f5aecc6faad3d3953f77b845f2cd9a086ab33cbd
|
|
BLAKE2b-256 checksum How to use checksums |
b30ea2e884d089761372b8bf03134b9677c75368b4b81122b4a909e3d2255ce3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-autoslug-field 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.