med/media/urls.py

37 lines
1.3 KiB
Python
Raw Normal View History

2019-08-02 12:57:53 +00:00
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) 2017-2019 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
2017-06-30 01:25:07 +00:00
from django.conf.urls import url
2020-09-25 08:27:43 +00:00
from django.urls import path
2017-06-30 01:25:07 +00:00
from . import views
2019-08-10 08:44:17 +00:00
app_name = 'media'
2017-06-30 01:25:07 +00:00
urlpatterns = [
2019-08-08 14:33:05 +00:00
url(r'^retour_emprunt/(?P<empruntid>[0-9]+)$', views.retour_emprunt,
name='retour-emprunt'),
path('find/', views.FindMediumView.as_view(), name="find"),
2021-10-26 13:16:00 +00:00
path('mark-as-present/comic/<int:pk>/',
2021-10-23 16:31:03 +00:00
views.MarkComicAsPresent.as_view(),
2021-10-23 16:33:51 +00:00
name="mark_comic_as_present"),
2020-12-28 22:12:27 +00:00
path('mark-as-present/manga/<int:pk>/',
views.MarkMangaAsPresent.as_view(),
name="mark_manga_as_present"),
path('mark-as-present/cd/<int:pk>/',
views.MarkCDAsPresent.as_view(),
name="mark_cd_as_present"),
2021-10-26 13:16:00 +00:00
path('mark-as-present/vinyl/<int:pk>/',
2021-10-23 16:31:03 +00:00
views.MarkVinylAsPresent.as_view(),
2020-12-28 22:12:27 +00:00
name="mark_vinyle_as_present"),
2021-10-26 13:16:00 +00:00
path('mark-as-present/novel/<int:pk>/',
views.MarkNovelAsPresent.as_view(),
name="mark_novel_as_present"),
path('mark-as-present/review/<int:pk>/',
views.MarkReviewAsPresent.as_view(),
name="mark_review_as_present"),
2020-12-28 22:12:27 +00:00
path('mark-as-present/future/<int:pk>/',
views.MarkFutureAsPresent.as_view(),
name="mark_future_as_present"),
2017-06-30 01:25:07 +00:00
]