Files
breccia-mapper/people/urls.py
James Graham d57c4769ae feat(people): Add view to create Person
User profile nav directs to create new Person for user
if there is not one currently associated

resolves issue #4
2020-02-19 08:17:39 +00:00

29 lines
598 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('relationships/<int:pk>',
views.RelationshipDetailView.as_view(),
name='relationship.detail'),
]