SnippetRetrieveView.as_view(), {'serve_content': True}, name='tp_metadata_snippet_content', ), # M2M Add/Remove # Assigned users url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_users/$', SnippetUpdateAssignedUsersView.as_view(), name='tp_metadata_snippet_update_assigned_users'), url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_users/add/$', M2MAddView.as_view(model=Snippet), {'m2m_field': 'assigned_users'}, name='tp_metadata_snippet_update_assigned_users_add'), url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_users/remove/$', M2MRemoveView.as_view(model=Snippet), {'m2m_field': 'assigned_users'}, name='tp_metadata_snippet_update_assigned_users_remove'), # Assigned units url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_units/$', SnippetUpdateAssignedUnitsView.as_view(), name='tp_metadata_snippet_update_assigned_units'), url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_units/add/$', M2MAddView.as_view(model=Snippet), {'m2m_field': 'assigned_units'}, name='tp_metadata_snippet_update_assigned_units_add'), url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_units/remove/$', M2MRemoveView.as_view(model=Snippet), {'m2m_field': 'assigned_units'}, name='tp_metadata_snippet_update_assigned_units_remove'), # Assigned quantities url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_quantities/$',
url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/$', SnippetUpdateView.as_view(), name='tp_metadata_snippet_update'), url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/content$', SnippetRetrieveView.as_view(), {'serve_content': True}, name='tp_metadata_snippet_content',), # M2M Add/Remove # Assigned users url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_users/$', SnippetUpdateAssignedUsersView.as_view(), name='tp_metadata_snippet_update_assigned_users'), url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_users/add/$', M2MAddView.as_view(model=Snippet), {'m2m_field': 'assigned_users'}, name='tp_metadata_snippet_update_assigned_users_add'), url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_users/remove/$', M2MRemoveView.as_view(model=Snippet), {'m2m_field': 'assigned_users'}, name='tp_metadata_snippet_update_assigned_users_remove'), # Assigned units url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_units/$', SnippetUpdateAssignedUnitsView.as_view(), name='tp_metadata_snippet_update_assigned_units'), url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_units/add/$', M2MAddView.as_view(model=Snippet), {'m2m_field': 'assigned_units'}, name='tp_metadata_snippet_update_assigned_units_add'), url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_units/remove/$', M2MRemoveView.as_view(model=Snippet), {'m2m_field': 'assigned_units'}, name='tp_metadata_snippet_update_assigned_units_remove'), # Assigned quantities url(r'^snippet/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/assigned_quantities/$', SnippetUpdateAssignedQuantitiesView.as_view(), name='tp_metadata_snippet_update_assigned_quantities'),
# Root url(r'^$', MonitorView.as_view(), name='tp_monitor'), # Scope url(r'^scope/$', ScopeView.as_view(), name='tp_monitor_scope'), url(r'^scope/filter/$', ScopeFilterView.as_view(), name='tp_monitor_scope_filter'), url(r'^scope/create/$', ScopeCreateView.as_view(), name='tp_monitor_scope_create'), url(r'^scope/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/$', ScopeRetrieveView.as_view(), name='tp_monitor_scope_retrieve'), url(r'^scope/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/quantities/$', ScopeUpdateQuantitiesView.as_view(), name='tp_monitor_scope_update_quantities'), url(r'^scope/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/quantities/add/$', M2MAddView.as_view(model=Scope), {'m2m_field': 'quantities'}, name='tp_monitor_scope_update_quantities_add'), url(r'^scope/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/quantities/remove/$', M2MRemoveView.as_view(model=Scope), {'m2m_field': 'quantities'}, name='tp_monitor_scope_update_quantities_remove'), # Counter url(r'^counter/$', CounterView.as_view(), name='tp_monitor_counter'), url(r'^counter/filter/$', CounterFilterView.as_view(), name='tp_monitor_counter_filter'), url(r'^counter/create/$', CounterCreateView.as_view(), name='tp_monitor_counter_create'), url(r'^counter/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/$', CounterRetrieveView.as_view(), name='tp_monitor_counter_retrieve'), url(r'^counter/(?P<pk>[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})/update/$', CounterUpdateView.as_view(), name='tp_monitor_counter_update'), # Mark url(r'^mark/$', MarkView.as_view(), name='tp_monitor_mark'), url(r'^mark/filter/$', MarkFilterView.as_view(), name='tp_monitor_mark_filter'), url(r'^mark/create/$', MarkCreateView.as_view(), name='tp_monitor_mark_create'),