urls.py 416 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.conf.urls import url
  4. from . import views
  5. urlpatterns = [
  6. url(r'^$', views.loan_list, name='loan-list'),
  7. url(r'^(?P<pk>[0-9]+)/return$', views.loan_return, name='loan-return'),
  8. url(r'^(?P<pk>[0-9]+)/transfer$', views.loan_transfer, name='loan-transfer'),
  9. url(r'^(?P<pk>[0-9]+)$', views.loan_detail, name='loan-detail'),
  10. ]