Files
breccia-mapper/people/urls.py
James Graham 6d2737b1a6 feat(people): Add first user data fields
To support choices in CharFields, Django choices enums have been
backported by bringing in the source file from Django 3.0.3

See #1
2020-02-21 17:10:26 +00:00

37 lines
860 B
Python

from django.urls import path
from . import views
app_name = 'people'
urlpatterns = [
path('profile/',
views.ProfileView.as_view(),
name='person.profile'),
path('people/create',
views.PersonCreateView.as_view(),
name='person.create'),
path('people',
views.PersonListView.as_view(),
name='person.list'),
path('people/<int:pk>',
views.ProfileView.as_view(),
name='person.detail'),
path('people/<int:pk>/update',
views.PersonUpdateView.as_view(),
name='person.update'),
path('people/<int:person_pk>/relationships/create',
views.RelationshipCreateView.as_view(),
name='person.relationship.create'),
path('relationships/<int:pk>',
views.RelationshipDetailView.as_view(),
name='relationship.detail'),
]