django.db.models SlugField Example Code

SlugField (source code) is a field for storing URL slugs in a relational database. SlugField is a column defined by the Django ORM.

SlugField is actually defined within the django.db.models.fields module but is typically imported from django.db.models rather than including the fields module reference.

Example 1 from gadget-board

gadget-board is a Django, Django REST Framework (DRF) and Angular web application that is open source under the Apache2 license.

gadget-board / web / gadgets / models.py