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
|
@ -2,9 +2,9 @@
|
|||
This module defines the URL patterns for operating system user 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 (
|
||||
AddSshPublicKey,
|
||||
|
@ -14,16 +14,30 @@ from .views import (
|
|||
SetOsUserPassword,
|
||||
)
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^(?P<slug>[\w0-9@.+-_]+)/setpassword$', SetOsUserPassword.as_view(),
|
||||
name='set_osuser_password'),
|
||||
url(r'^(?P<package>\d+)/ssh-keys/$', ListSshPublicKeys.as_view(),
|
||||
name='list_ssh_keys'),
|
||||
url(r'^(?P<package>\d+)/ssh-keys/add$', AddSshPublicKey.as_view(),
|
||||
name='add_ssh_key'),
|
||||
url(r'^(?P<package>\d+)/ssh-keys/(?P<pk>\d+)/edit-comment$',
|
||||
EditSshPublicKeyComment.as_view(), name='edit_ssh_key_comment'),
|
||||
url(r'^(?P<package>\d+)/ssh-keys/(?P<pk>\d+)/delete$',
|
||||
DeleteSshPublicKey.as_view(), name='delete_ssh_key'),
|
||||
re_path(
|
||||
r"^(?P<slug>[\w0-9@.+-_]+)/setpassword$",
|
||||
SetOsUserPassword.as_view(),
|
||||
name="set_osuser_password",
|
||||
),
|
||||
re_path(
|
||||
r"^(?P<package>\d+)/ssh-keys/$",
|
||||
ListSshPublicKeys.as_view(),
|
||||
name="list_ssh_keys",
|
||||
),
|
||||
re_path(
|
||||
r"^(?P<package>\d+)/ssh-keys/add$",
|
||||
AddSshPublicKey.as_view(),
|
||||
name="add_ssh_key",
|
||||
),
|
||||
re_path(
|
||||
r"^(?P<package>\d+)/ssh-keys/(?P<pk>\d+)/edit-comment$",
|
||||
EditSshPublicKeyComment.as_view(),
|
||||
name="edit_ssh_key_comment",
|
||||
),
|
||||
re_path(
|
||||
r"^(?P<package>\d+)/ssh-keys/(?P<pk>\d+)/delete$",
|
||||
DeleteSshPublicKey.as_view(),
|
||||
name="delete_ssh_key",
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue