Browse Source

Fix deprecated messages

Denis K 8 years ago
parent
commit
9b7f76ecc0
1 changed files with 6 additions and 3 deletions
  1. 6 3
      jet/tests/urls.py

+ 6 - 3
jet/tests/urls.py

@@ -1,12 +1,15 @@
+import django
 from django.conf.urls import patterns, include, url
 from django.contrib import admin
 
 admin.autodiscover()
 
-urlpatterns = patterns(
-    '',
+urlpatterns = [
     url(r'^jet/', include('jet.urls', 'jet')),
     url(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')),
     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
     url(r'^admin/', include(admin.site.urls)),
-)
+]
+
+if django.VERSION[:2] < (1, 8):
+    urlpatterns = patterns('', *urlpatterns)