Commits

George Notaras committed 08b76c0

Added ``PRIMARY_SLUG_SLUGIFY_FUNC`` setting.

  • Participants
  • Parent commits 39fa706

Comments (0)

Files changed (1)

File src/primary_slug/settings.py

 from django.conf import settings
 
 
-MY_APP_SETTING = getattr(settings, 'MY_APP_SETTING', '...')
+#DEFAULT_SLUGIFY = 'django.template.defaultfilters.slugify'
+#DEFAULT_SLUGIFY = 'django.template.defaultfilters.greek2latin'
+DEFAULT_SLUGIFY = 'primary_slug.utils.simple_slugify'
+PRIMARY_SLUG_SLUGIFY_FUNC = getattr(settings, 'PRIMARY_SLUG_SLUGIFY_FUNC', DEFAULT_SLUGIFY)