Skip to content

Replace python-slugify with Django's built-in slugify #465

@dhararon

Description

@dhararon

Summary

Replace the slugify import from python-slugify with Django's native django.utils.text.slugify to avoid GPL license compliance issues.

Problem

The current implementation uses python-slugify, which depends on text-unidecode. This package is dual-licensed under GPL and Artistic License. License compliance tools like pip-licenses flag this as a violation in private repositories, causing CI/CD pipeline failures.

Solution

Change the import in admin_interface/templatetags/admin_interface_tags.py:

# Before
from slugify import slugify

# After
from django.utils.text import slugify

Why this works

  • Django's slugify is already available as a transitive dependency (this is a Django package)
  • No additional dependencies required
  • Eliminates GPL license concerns
  • Functionally equivalent for the use case in this project

References

Affected file: admin_interface/templatetags/admin_interface_tags.py#L12

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency fileenhancementNew feature or request

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions