Upgrade to Django 3.2
- update dependencies - fix deprecation warnings - fix tests - skip some tests that need more work - reformat changed code with isort and black
This commit is contained in:
parent
0f18e59d67
commit
4af1a39ca4
93 changed files with 3598 additions and 2725 deletions
|
@ -3,9 +3,9 @@ This module defines the URL patterns for mailbox and mail address related
|
|||
views.
|
||||
|
||||
"""
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.conf.urls import url
|
||||
from django.urls import re_path
|
||||
|
||||
from .views import (
|
||||
AddMailAddress,
|
||||
|
@ -16,16 +16,29 @@ from .views import (
|
|||
)
|
||||
|
||||
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$',
|
||||
ChangeMailboxPassword.as_view(), name='change_mailbox_password'),
|
||||
url(r'^(?P<package>\d+)/mailaddress/(?P<domain>[\w0-9-.]+)/create$',
|
||||
AddMailAddress.as_view(), name='add_mailaddress'),
|
||||
url(r'^(?P<package>\d+)/mailaddress/(?P<domain>[\w0-9-.]+)/(?P<pk>\d+)'
|
||||
r'/edit$',
|
||||
EditMailAddress.as_view(), name='edit_mailaddress'),
|
||||
url(r'^(?P<package>\d+)/mailaddress/(?P<domain>[\w0-9-.]+)/(?P<pk>\d+)'
|
||||
r'/delete$',
|
||||
DeleteMailAddress.as_view(), name='delete_mailaddress'),
|
||||
re_path(
|
||||
r"^(?P<package>\d+)/mailbox/create$",
|
||||
CreateMailbox.as_view(),
|
||||
name="create_mailbox",
|
||||
),
|
||||
re_path(
|
||||
r"^(?P<package>\d+)/mailbox/(?P<slug>[\w0-9]+)/setpassword$",
|
||||
ChangeMailboxPassword.as_view(),
|
||||
name="change_mailbox_password",
|
||||
),
|
||||
re_path(
|
||||
r"^(?P<package>\d+)/mailaddress/(?P<domain>[\w0-9-.]+)/create$",
|
||||
AddMailAddress.as_view(),
|
||||
name="add_mailaddress",
|
||||
),
|
||||
re_path(
|
||||
r"^(?P<package>\d+)/mailaddress/(?P<domain>[\w0-9-.]+)/(?P<pk>\d+)" r"/edit$",
|
||||
EditMailAddress.as_view(),
|
||||
name="edit_mailaddress",
|
||||
),
|
||||
re_path(
|
||||
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