aboutsummaryrefslogtreecommitdiff
path: root/src/django_pgpmailman/urls.py
diff options
context:
space:
mode:
authorJ08nY2017-08-22 00:58:11 +0200
committerJ08nY2017-08-22 00:58:11 +0200
commit216256f0af673de1d81b10110adf7fa7a5d88f40 (patch)
tree49b7e10713d5a3ad91c7f30caa7d702f7d8f3be0 /src/django_pgpmailman/urls.py
parentbfc7f14b1df86834abf395fdbf11ab54f076dca6 (diff)
downloaddjango-pgpmailman-216256f0af673de1d81b10110adf7fa7a5d88f40.tar.gz
django-pgpmailman-216256f0af673de1d81b10110adf7fa7a5d88f40.tar.zst
django-pgpmailman-216256f0af673de1d81b10110adf7fa7a5d88f40.zip
Diffstat (limited to 'src/django_pgpmailman/urls.py')
-rw-r--r--src/django_pgpmailman/urls.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/django_pgpmailman/urls.py b/src/django_pgpmailman/urls.py
index a451e9c..519d5dc 100644
--- a/src/django_pgpmailman/urls.py
+++ b/src/django_pgpmailman/urls.py
@@ -22,7 +22,8 @@ from django.conf.urls import url, include
from django_pgpmailman.views.list import (
pgp_list_index, pgp_list_summary,
ListSignatureSettingsView, ListEncryptionSettingsView,
- ListMiscSettingsView, ListKeyManagementView, ListPubkey, ListPrivkey)
+ ListMiscSettingsView, ListKeyManagementView, ListPubkey, ListPrivkey,
+ ListCreate)
from django_pgpmailman.views.user import UserSummaryView
list_patterns = [
@@ -50,6 +51,8 @@ user_patterns = [
urlpatterns = [
url(r'^$', pgp_list_index, name='pgp_list_index'),
+ url(r'^lists/create/$', ListCreate.as_view(success_url='pgp_list_summary'),
+ name='pgp_list_create'),
url(r'^lists/(?P<list_id>[^/]+)/', include(list_patterns)),
url(r'^accounts/', include(user_patterns))
]