mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
Answers to the relationship questions have been moved from the relationship to another model RelationshipAnswerSet. A new answer set is created each time a user answers the relationship questions. Resolves #16 Resolves #17 Resolves #18
41 lines
1003 B
Python
41 lines
1003 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'),
|
|
|
|
path('relationships/<int:relationship_pk>/update',
|
|
views.RelationshipUpdateView.as_view(),
|
|
name='relationship.update'),
|
|
]
|