From 6a9b26f8f96a6507b7c9c91358da494c88245cf0 Mon Sep 17 00:00:00 2001 From: Fantomas42 Date: Fri, 28 Mar 2014 11:14:32 +0100 Subject: [PATCH] Compatibility for Django >= 1.5 --- locking/admin.py | 2 +- locking/urls.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/locking/admin.py b/locking/admin.py index 9892850..7591c16 100644 --- a/locking/admin.py +++ b/locking/admin.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- from django.conf import settings -from django.conf.urls.defaults import patterns, url +from django.conf.urls import patterns, url from django.contrib import admin from django.contrib.admin.util import unquote, model_ngettext from django.core.exceptions import PermissionDenied diff --git a/locking/urls.py b/locking/urls.py index 48a62bd..704b18f 100644 --- a/locking/urls.py +++ b/locking/urls.py @@ -1,5 +1,5 @@ -from django.conf.urls.defaults import * +from django.conf.urls import * urlpatterns = patterns('', (r'jsi18n/$', 'django.views.i18n.javascript_catalog', {'packages': 'locking'}), - ) \ No newline at end of file + )