示例#1
0
    url(r'^request/(?P<requestion_id>\d{1,7})/find_profile/$',
        FindProfileForRequestion.as_view(), name=u'find_profile_for_requestion'),
    url(r'^request/(?P<requestion_id>\d{1,7})/embed_to_profile/(?P<profile_id>\d{1,7})/$',
        EmbedRequestionToProfile.as_view(), name=u'embed_requestion_to_profile'),
    url(r'^request/(?P<requestion_id>\d{1,7})/change_location/$',
        ChangeRequestionLocation.as_view(), name=u'change_requestion_location'),
    # Смена статуса заявки
    url(r'^request/(?P<requestion_id>\d{1,7})/status-(?P<dst_status>\d{1,3})/$',
        RequestionStatusChange.as_view(), name=u'operator_requestion_status_change'),
    url(r'^request/(?P<requestion_id>\d{1,7})/generate_blank/$',
        GenerateBlank.as_view(), name=u'operator_generate_blank'),

    # Работа с садиками
    url(r'^dou/$',
        SadikListWithGroups.as_view(), name=u'sadik_list_with_groups'),
    url(r'^dou/(?P<sadik_id>\d{1,7})/change_info/$',
        SadikInfoChange.as_view(), name=u'sadik_info_change'),
    url(r'^dou/(?P<sadik_id>\d{1,7})/places/$',
        SadikGroupChangePlaces.as_view(), name=u'sadikgroup_change_places'),
    url(r'^dou/(?:(?P<sadik_id>\d{1,7})/)?requests/$',
        RequestionListEnrollment.as_view(), name=u'requestion_list_enroll'),
    url(r'^dou/(?P<sadik_id>\d{1,7})/distributed_requestions/$',
        DistributedRequestionsForSadik.as_view(), name=u'distributed_requestions_for_sadik'),
)

for plugin in plugins:
    try:
        urlpatterns += plugin.get_urls()
    except NotImplementedError:
        pass