{"id":16177934,"url":"https://github.com/marfyl/django-autoslug","last_synced_at":"2026-05-02T03:31:27.564Z","repository":{"id":81691021,"uuid":"148461710","full_name":"marfyl/django-autoslug","owner":"marfyl","description":" Django-autoslug is a reusable Django library that provides an improved slug field which can automatically populate itself from another field","archived":false,"fork":false,"pushed_at":"2019-02-25T22:07:31.000Z","size":245,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T11:33:41.451Z","etag":null,"topics":["django","pip","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marfyl.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"COPYING.LESSER","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-12T10:17:14.000Z","updated_at":"2021-09-21T13:31:55.000Z","dependencies_parsed_at":"2023-04-28T09:47:54.277Z","dependency_job_id":null,"html_url":"https://github.com/marfyl/django-autoslug","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/marfyl/django-autoslug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marfyl%2Fdjango-autoslug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marfyl%2Fdjango-autoslug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marfyl%2Fdjango-autoslug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marfyl%2Fdjango-autoslug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marfyl","download_url":"https://codeload.github.com/marfyl/django-autoslug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marfyl%2Fdjango-autoslug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32522236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","pip","python"],"created_at":"2024-10-10T05:11:27.271Z","updated_at":"2026-05-02T03:31:27.539Z","avatar_url":"https://github.com/marfyl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-autoslug\n~~~~~~~~~~~~~~~\n\n.. image:: https://img.shields.io/coveralls/neithere/django-autoslug.svg\n    :target: https://coveralls.io/r/neithere/django-autoslug\n\n.. image:: https://travis-ci.com/marfyl/django-autoslug.svg?branch=master\n    :target: https://travis-ci.com/marfyl/django-autoslug\n\n.. image:: https://img.shields.io/pypi/format/django-autoslug.svg\n    :target: https://pypi.python.org/pypi/django-autoslug\n\n.. image:: https://img.shields.io/pypi/status/django-autoslug.svg\n    :target: https://pypi.python.org/pypi/django-autoslug\n\n.. image:: https://img.shields.io/pypi/v/django-autoslug.svg\n    :target: https://pypi.python.org/pypi/django-autoslug\n\n.. image:: https://img.shields.io/pypi/pyversions/django-autoslug.svg\n    :target: https://pypi.python.org/pypi/django-autoslug\n\n.. image:: https://img.shields.io/pypi/dd/django-autoslug.svg\n    :target: https://pypi.python.org/pypi/django-autoslug\n\n.. image:: https://readthedocs.org/projects/django-autoslug/badge/?version=stable\n    :target: http://django-autoslug.readthedocs.org/en/stable/\n\n.. image:: https://readthedocs.org/projects/django-autoslug/badge/?version=latest\n    :target: http://django-autoslug.readthedocs.org/en/latest/\n\nDjango-autoslug is a reusable Django library that provides an improved\nslug field which can automatically:\n\na) populate itself from another field,\nb) preserve uniqueness of the value and\nc) use custom `slugify()` functions for better i18n.\n\nThe field is highly configurable.\n\nRequirements\n------------\n\n*Python 2.7, 3.5 or PyPy*.\n\n*Django 1.7.10* or higher.\n\nIt may be possible to successfully use django-autoslug in other environments\nbut they are not tested.\n\n.. note::\n\n  PyPy3 is not officially supported only because there were some problems with\n  permissions and `__pycache__` on CI unrelated to django-autoslug itself.\n\nExamples\n--------\n\nA simple example:\n\n.. code-block:: python\n\n    from django.db.models import CharField, Model\n    from autoslug import AutoSlugField\n\n    class Article(Model):\n        title = CharField(max_length=200)\n        slug = AutoSlugField(populate_from='title')\n\nMore complex example:\n\n.. code-block:: python\n\n    from django.db.models import CharField, DateField, ForeignKey, Model\n    from django.contrib.auth.models import User\n    from autoslug import AutoSlugField\n\n    class Article(Model):\n        title = CharField(max_length=200)\n        pub_date = DateField(auto_now_add=True)\n        author = ForeignKey(User)\n        slug = AutoSlugField(populate_from=lambda instance: instance.title,\n                             unique_with=['author__name', 'pub_date__month'],\n                             slugify=lambda value: value.replace(' ','-'))\n\nDocumentation\n-------------\n\nSee the `complete documentation \u003chttp://django-autoslug.readthedocs.org\u003e`_\non ReadTheDocs.  It is built automatically for the latest version.\n\nCommunity\n---------\n\nThis application was initially created by Andy Mikhailenko and then improved\nby other developers. They are listed in `AUTHORS.rst`.\n\nPlease feel free to file issues and/or submit patches.\n\nSee `CONTRIBUTING.rst` for hints related to the preferred workflow.\n\nLicensing\n---------\n\nDjango-autoslug is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 3 of the\nLicense, or (at your option) any later version.\n\nDjango-autoslug is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this program; see the file COPYING.LESSER. If not,\nsee `GNU licenses \u003chttp://gnu.org/licenses/\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarfyl%2Fdjango-autoslug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarfyl%2Fdjango-autoslug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarfyl%2Fdjango-autoslug/lists"}