mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 19:37:06 +00:00
Creating a relationship requires answering each of the relationship questions resolve #2 partial #5
33 lines
749 B
Python
33 lines
749 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:person_pk>/relationships/create',
|
|
views.RelationshipCreateView.as_view(),
|
|
name='person.relationship.create'),
|
|
|
|
path('relationships/<int:pk>',
|
|
views.RelationshipDetailView.as_view(),
|
|
name='relationship.detail'),
|
|
]
|