gva/gnuviechadmin/userdbs/urls.py
Jan Dittberner 4af1a39ca4 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
2023-02-18 22:46:48 +01:00

25 lines
671 B
Python

"""
This module defines the URL patterns for user database views.
"""
from __future__ import absolute_import
from django.urls import re_path
from .views import AddUserDatabase, ChangeDatabaseUserPassword, DeleteUserDatabase
urlpatterns = [
re_path(
r"^(?P<package>\d+)/create$", AddUserDatabase.as_view(), name="add_userdatabase"
),
re_path(
r"^(?P<package>\d+)/(?P<slug>[\w0-9]+)/setpassword",
ChangeDatabaseUserPassword.as_view(),
name="change_dbuser_password",
),
re_path(
r"^(?P<package>\d+)/(?P<slug>[\w0-9]+)/delete",
DeleteUserDatabase.as_view(),
name="delete_userdatabase",
),
]