mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
User profile nav directs to create new Person for user if there is not one currently associated resolves issue #4
29 lines
598 B
Python
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'),
|
|
]
|