We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2237710 + d30c602 commit 4dc7508Copy full SHA for 4dc7508
autoslug/settings.py
@@ -58,7 +58,12 @@
58
59
"""
60
from django.conf import settings
61
-from django.core.urlresolvers import get_callable
+from django import VERSION
62
+
63
+if VERSION >= (2, 0):
64
+ from django.urls import get_callable
65
+else:
66
+ from django.core.urlresolvers import get_callable
67
68
# use custom slugifying function if any
69
slugify_function_path = getattr(settings, 'AUTOSLUG_SLUGIFY_FUNCTION', 'autoslug.utils.slugify')
0 commit comments