implement mail address deletion

- implement managemails.views.DeleteMailAddress
- add get_context_data to AddMailAddress to add customer to template context
- add URL pattern 'delete_mailaddress' to managemails.urls
- add template hostingpackages/customerhostingpackage_detail.html
- add entry to changelog
This commit is contained in:
Jan Dittberner 2015-01-25 19:03:58 +01:00
parent af27400077
commit bebcad8c86
4 changed files with 71 additions and 0 deletions

View file

@ -11,6 +11,7 @@ from .views import (
AddMailAddress,
ChangeMailboxPassword,
CreateMailbox,
DeleteMailAddress,
)
urlpatterns = patterns(
@ -21,4 +22,7 @@ urlpatterns = patterns(
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'/delete$',
DeleteMailAddress.as_view(), name='delete_mailaddress'),
)