Update to Django 1.9
- update all dependencies - fix deprecation warnings and errors for Django 1.9 compatibility
This commit is contained in:
parent
1b30b1a38c
commit
085b126416
21 changed files with 85 additions and 110 deletions
|
@ -32,7 +32,7 @@ class ReadOnlyPasswordHashField(forms.Field):
|
|||
def bound_data(self, data, initial):
|
||||
return initial
|
||||
|
||||
def _has_changed(self, initial, data):
|
||||
def has_changed(self, initial, data):
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ class ReadOnlyPasswordHashFieldTest(TestCase):
|
|||
|
||||
def test__has_changed(self):
|
||||
field = ReadOnlyPasswordHashField()
|
||||
self.assertFalse(field._has_changed('new', 'old'))
|
||||
self.assertFalse(field.has_changed('new', 'old'))
|
||||
|
||||
|
||||
class CustomerTestCase(TestCase):
|
||||
|
|
|
@ -5,7 +5,7 @@ views.
|
|||
"""
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from django.conf.urls import patterns, url
|
||||
from django.conf.urls import url
|
||||
|
||||
from .views import (
|
||||
AddMailAddress,
|
||||
|
@ -15,8 +15,7 @@ from .views import (
|
|||
EditMailAddress,
|
||||
)
|
||||
|
||||
urlpatterns = patterns(
|
||||
'',
|
||||
urlpatterns = [
|
||||
url(r'^(?P<package>\d+)/mailbox/create$',
|
||||
CreateMailbox.as_view(), name='create_mailbox'),
|
||||
url(r'^(?P<package>\d+)/mailbox/(?P<slug>[\w0-9]+)/setpassword$',
|
||||
|
@ -29,4 +28,4 @@ urlpatterns = patterns(
|
|||
url(r'^(?P<package>\d+)/mailaddress/(?P<domain>[\w0-9-.]+)/(?P<pk>\d+)'
|
||||
r'/delete$',
|
||||
DeleteMailAddress.as_view(), name='delete_mailaddress'),
|
||||
)
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue