Skip to content

Commit 1e45f20

Browse files
committed
Update admin.py compatibility with Django 1.6
removed defaults parameter in get_urls method that crashes the SingletonModelAdmin Class
1 parent 8310e2a commit 1e45f20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

singleton_models/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def has_delete_permission(self, request, obj=None):
1818
return False
1919

2020
def get_urls(self):
21-
from django.conf.urls.defaults import patterns, url
21+
from django.conf.urls import patterns, url
2222

2323
def wrap(view):
2424
def wrapper(*args, **kwargs):

0 commit comments

Comments
 (0)