Share views
* replaces function based share views with class based * improves team-share autocomplete search * renames internal share url names
This commit is contained in:
@@ -21,7 +21,7 @@ from intervention.views.report import report_view
|
||||
from intervention.views.resubmission import InterventionResubmissionView
|
||||
from intervention.views.revocation import new_revocation_view, edit_revocation_view, remove_revocation_view, \
|
||||
get_revocation_view
|
||||
from intervention.views.share import share_view, create_share_view
|
||||
from intervention.views.share import InterventionShareFormView, InterventionShareByTokenView
|
||||
|
||||
app_name = "intervention"
|
||||
urlpatterns = [
|
||||
@@ -32,8 +32,8 @@ urlpatterns = [
|
||||
path('<id>/log', InterventionLogView.as_view(), name='log'),
|
||||
path('<id>/edit', edit_view, name='edit'),
|
||||
path('<id>/remove', remove_view, name='remove'),
|
||||
path('<id>/share/<token>', share_view, name='share'),
|
||||
path('<id>/share', create_share_view, name='share-create'),
|
||||
path('<id>/share/<token>', InterventionShareByTokenView.as_view(), name='share-token'),
|
||||
path('<id>/share', InterventionShareFormView.as_view(), name='share-form'),
|
||||
path('<id>/check', check_view, name='check'),
|
||||
path('<id>/record', InterventionRecordView.as_view(), name='record'),
|
||||
path('<id>/report', report_view, name='report'),
|
||||
|
||||
Reference in New Issue
Block a user