mirror of
https://github.com/jazzband/django-authority.git
synced 2026-04-23 08:14:43 +00:00
Fix import for Django 1.6
This commit is contained in:
parent
54b33692ce
commit
d81caa6599
1 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,7 @@
|
|||
from django.conf.urls.defaults import *
|
||||
try:
|
||||
from django.conf.urls import *
|
||||
except ImportError: # django < 1.4
|
||||
from django.conf.urls.defaults import *
|
||||
|
||||
urlpatterns = patterns('authority.views',
|
||||
url(r'^permission/add/(?P<app_label>[\w\-]+)/(?P<module_name>[\w\-]+)/(?P<pk>\d+)/$',
|
||||
|
|
|
|||
Loading…
Reference in a new issue