Commits

Mark Lavin  committed c8f7a61

Fix url imports to remove 1.5 deprecation warnings.

  • Participants
  • Parent commits aac0395

Comments (0)

Files changed (2)

File selectable/tests/urls.py

-from django.conf.urls.defaults import *
+try:
+    from django.conf.urls import handler404, handler500, patterns, include
+except ImportError:
+    # Django < 1.4
+    from django.conf.urls.defaults import handler404, handler500, patterns, include
 
 handler404 = 'selectable.tests.views.test_404'
 handler500 = 'selectable.tests.views.test_500'

File selectable/urls.py

-from django.conf.urls.defaults import *
+try:
+    from django.conf.urls import handler404, handler500, patterns, url
+except ImportError:
+    # Django < 1.4
+    from django.conf.urls.defaults import handler404, handler500, patterns, url
 
 from selectable import registry