url(r'^forwarding/new/SearchByParamsRepeater/$', AddCaseRepeaterView.as_view(), {'repeater_type': 'SearchByParamsRepeater'}, name=AddCaseRepeaterView.urlname), url(r'^forwarding/new/(?P<repeater_type>\w+)/$', AddRepeaterView.as_view(), name=AddRepeaterView.urlname), url(r'^forwarding/edit/CaseRepeater/(?P<repeater_id>\w+)/$', EditCaseRepeaterView.as_view(), {'repeater_type': 'CaseRepeater'}, name=EditCaseRepeaterView.urlname), url(r'^forwarding/edit/FormRepeater/(?P<repeater_id>\w+)/$', EditFormRepeaterView.as_view(), {'repeater_type': 'FormRepeater'}, name=EditFormRepeaterView.urlname), url(r'^forwarding/edit/OpenmrsRepeater/(?P<repeater_id>\w+)/$', EditOpenmrsRepeaterView.as_view(), {'repeater_type': 'OpenmrsRepeater'}, name=EditOpenmrsRepeaterView.urlname), url(r'^forwarding/edit/Dhis2Repeater/(?P<repeater_id>\w+)/$', EditDhis2RepeaterView.as_view(), {'repeater_type': 'Dhis2Repeater'}, name=EditDhis2RepeaterView.urlname), url(r'^forwarding/edit/(?P<repeater_type>\w+)/(?P<repeater_id>\w+)/$', EditRepeaterView.as_view(), name=EditRepeaterView.urlname), url(r'^forwarding/config/OpenmrsRepeater/(?P<repeater_id>\w+)/$', config_openmrs_repeater, name='config_openmrs_repeater'), url(r'^forwarding/config/Dhis2Repeater/(?P<repeater_id>\w+)/$', config_dhis2_repeater, name='config_dhis2_repeater'), url(r'^forwarding/config/(?P<repeater_type>\w+)/(?P<repeater_id>\w+)/$', lambda: None, name='config_repeater'), url(r'^forwarding/test/$', test_repeater, name='test_repeater'), url(r'^forwarding/drop/(?P<repeater_id>[\w-]+)/$', drop_repeater, name='drop_repeater'), url(r'^forwarding/pause/(?P<repeater_id>[\w-]+)/$', pause_repeater, name='pause_repeater'), url(r'^forwarding/resume/(?P<repeater_id>[\w-]+)/$', resume_repeater, name='resume_repeater'), url(r'^logs/$', MotechLogListView.as_view(), name=MotechLogListView.urlname), url(r'^logs/(?P<pk>\d+)/$', MotechLogDetailView.as_view(), name=MotechLogDetailView.urlname), ]
name=EditRepeaterView.urlname), url(r'^forwarding/config/OpenmrsRepeater/(?P<repeater_id>\w+)/$', config_openmrs_repeater, name='config_openmrs_repeater'), url(r'^forwarding/config/Dhis2Repeater/(?P<repeater_id>\w+)/$', config_dhis2_repeater, name='config_dhis2_repeater'), url(r'^forwarding/config/Dhis2EntityRepeater/(?P<repeater_id>\w+)/$', config_dhis2_entity_repeater, name='config_dhis2_entity_repeater'), url(r'^forwarding/config/(?P<repeater_type>\w+)/(?P<repeater_id>\w+)/$', lambda: None, name='config_repeater'), url(r'^forwarding/test/$', test_repeater, name='test_repeater'), url(r'^forwarding/drop/(?P<repeater_id>[\w-]+)/$', drop_repeater, name='drop_repeater'), url(r'^forwarding/pause/(?P<repeater_id>[\w-]+)/$', pause_repeater, name='pause_repeater'), url(r'^forwarding/resume/(?P<repeater_id>[\w-]+)/$', resume_repeater, name='resume_repeater'), url(r'^logs/$', MotechLogListView.as_view(), name=MotechLogListView.urlname), url(r'^logs/(?P<pk>\d+)/$', MotechLogDetailView.as_view(), name=MotechLogDetailView.urlname), ]
from __future__ import absolute_import from __future__ import unicode_literals from django.conf.urls import url from corehq.motech.views import MotechLogListView, MotechLogDetailView urlpatterns = [ url(r'^logs/$', MotechLogListView.as_view(), name=MotechLogListView.urlname), url(r'^logs/(?P<pk>\d+)/$', MotechLogDetailView.as_view(), name=MotechLogDetailView.urlname), ]