mpeltriaux
e029f8c61e
* adds button and functionality for leaving a team * if the admin leaves the team, another user will be chosen as new admin automatically * improves Team (django) admin backend * better control over user adding-removing * only added team members are selectable as admin
25 lines
858 B
Python
25 lines
858 B
Python
"""
|
|
Author: Michel Peltriaux
|
|
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
|
|
Contact: michel.peltriaux@sgdnord.rlp.de
|
|
Created on: 08.07.21
|
|
|
|
"""
|
|
from django.urls import path
|
|
|
|
from user.views import *
|
|
|
|
app_name = "user"
|
|
urlpatterns = [
|
|
path("", index_view, name="index"),
|
|
path("notifications/", notifications_view, name="notifications"),
|
|
path("token/api", api_token_view, name="api-token"),
|
|
path("contact/<id>", contact_view, name="contact"),
|
|
path("team/", index_team_view, name="team-index"),
|
|
path("team/new", new_team_view, name="team-new"),
|
|
path("team/<id>", data_team_view, name="team-data"),
|
|
path("team/<id>/edit", edit_team_view, name="team-edit"),
|
|
path("team/<id>/remove", remove_team_view, name="team-remove"),
|
|
path("team/<id>/leave", leave_team_view, name="team-leave"),
|
|
|
|
] |