# coding=utf-8
from django.contrib.auth.decorators import login_required
from django.conf.urls import patterns, url

from .ajax import distributor_payment_update, get_task_initial, get_task_cord_list, get_current_location, \
    ajax_remove_photo, get_point_photo_list
from .views import DistributorListView, DistributorTaskListView, DistributorTaskArchiveView,\
    DistributorTaskCreateView, DistributorTaskUpdateView, DistributorReportView, DistributorPromoTaskCreateView, \
    DistributorPromoTaskUpdateView, DistributorQuestTaskCreateView, DistributorQuestTaskUpdateView, \
    QuestionaryCompleted, DistributorCreateView, DistributorUpdateView

__author__ = 'alexy'

urlpatterns = patterns(
    'apps.distributor.views',
    url(r'^$', login_required(DistributorListView.as_view()), name='list'),
    url(r'^add/$', login_required(DistributorCreateView.as_view()), name='add'),
    url(r'^(?P<pk>\d+)/$', login_required(DistributorUpdateView.as_view()), name='update'),
    url(r'^payment_update/$', distributor_payment_update, name='payment-update'),
    # report
    url(r'^report/$', login_required(DistributorReportView.as_view()), name='report'),
    url(r'^report/excel/$', 'distributor_report_excel', name='report-excel'),
    url(r'^report/detail/(?P<pk>\d+)/$', 'distributor_detail_report_excel', name='report-detail'),
    # tasks
    url(r'^tasks/$', login_required(DistributorTaskListView.as_view()), name='task-list'),
    url(r'^tasks/archive/$', login_required(DistributorTaskArchiveView.as_view()), name='task-archive'),
    url(r'^task/add/$', login_required(DistributorTaskCreateView.as_view()), name='task-add'),
    url(r'^task/(?P<pk>\d+)/$', login_required(DistributorTaskUpdateView.as_view()), name='task-update'),

    url(r'^task/promo/add/$', login_required(DistributorPromoTaskCreateView.as_view()), name='task-promo-add'),
    url(r'^task/promo/(?P<pk>\d+)/$', login_required(DistributorPromoTaskUpdateView.as_view()),
        name='task-promo-update'),

    url(r'^task/quest/add/$', login_required(DistributorQuestTaskCreateView.as_view()), name='task-quest-add'),
    url(r'^task/quest/(?P<pk>\d+)/$', login_required(DistributorQuestTaskUpdateView.as_view()),
        name='task-quest-update'),
    url(r'^questionarycoplated/(?P<pk>\d+)/$', login_required(QuestionaryCompleted.as_view()),
        name='questionary-completed'),

    url(r'^task/(?P<pk>\d+)/map/$', 'distributor_task_update_map', name='task-update-map'),
    url(r'^point/(?P<pk>\d+)/$', 'gps_point_update', name='gpspoint-update'),
    url(r'^point/(?P<pk>\d+)/photo/$', get_point_photo_list, name='gpspoint-photo-list'),

    # ajax
    url(r'^get_distr_and_area_for_sale/$', get_task_initial, name='get_task_initial'),
    url(r'^get_task_coord_list/$', get_task_cord_list, name='get_task_cord_list'),
    url(r'^get_current_location/$', get_current_location, name='get_current_location'),
    url(r'^ajax_photo_delete/$', ajax_remove_photo, name='ajax_remove_photo'),
)

31ee2f181bbb589e2e2322ccce6cd697d6e45673
<mask token>

<mask token>
__author__ = 'alexy'
urlpatterns = patterns('apps.distributor.views', url('^$', login_required(
    DistributorListView.as_view()), name='list'), url('^add/$',
    login_required(DistributorCreateView.as_view()), name='add'), url(
    '^(?P<pk>\\d+)/$', login_required(DistributorUpdateView.as_view()),
    name='update'), url('^payment_update/$', distributor_payment_update,
    name='payment-update'), url('^report/$', login_required(
    DistributorReportView.as_view()), name='report'), url('^report/excel/$',
    'distributor_report_excel', name='report-excel'), url(
    '^report/detail/(?P<pk>\\d+)/$', 'distributor_detail_report_excel',
    name='report-detail'), url('^tasks/$', login_required(
    DistributorTaskListView.as_view()), name='task-list'), url(
    '^tasks/archive/$', login_required(DistributorTaskArchiveView.as_view()
    ), name='task-archive'), url('^task/add/$', login_required(
    DistributorTaskCreateView.as_view()), name='task-add'), url(
    '^task/(?P<pk>\\d+)/$', login_required(DistributorTaskUpdateView.
    as_view()), name='task-update'), url('^task/promo/add/$',
    login_required(DistributorPromoTaskCreateView.as_view()), name=
    'task-promo-add'), url('^task/promo/(?P<pk>\\d+)/$', login_required(
    DistributorPromoTaskUpdateView.as_view()), name='task-promo-update'),
    url('^task/quest/add/$', login_required(DistributorQuestTaskCreateView.
    as_view()), name='task-quest-add'), url('^task/quest/(?P<pk>\\d+)/$',
    login_required(DistributorQuestTaskUpdateView.as_view()), name=
    'task-quest-update'), url('^questionarycoplated/(?P<pk>\\d+)/$',
    login_required(QuestionaryCompleted.as_view()), name=
    'questionary-completed'), url('^task/(?P<pk>\\d+)/map/$',
    'distributor_task_update_map', name='task-update-map'), url(
    '^point/(?P<pk>\\d+)/$', 'gps_point_update', name='gpspoint-update'),
    url('^point/(?P<pk>\\d+)/photo/$', get_point_photo_list, name=
    'gpspoint-photo-list'), url('^get_distr_and_area_for_sale/$',
    get_task_initial, name='get_task_initial'), url(
    '^get_task_coord_list/$', get_task_cord_list, name='get_task_cord_list'
    ), url('^get_current_location/$', get_current_location, name=
    'get_current_location'), url('^ajax_photo_delete/$', ajax_remove_photo,
    name='ajax_remove_photo'))

from django.contrib.auth.decorators import login_required
from django.conf.urls import patterns, url
from .ajax import distributor_payment_update, get_task_initial, get_task_cord_list, get_current_location, ajax_remove_photo, get_point_photo_list
from .views import DistributorListView, DistributorTaskListView, DistributorTaskArchiveView, DistributorTaskCreateView, DistributorTaskUpdateView, DistributorReportView, DistributorPromoTaskCreateView, DistributorPromoTaskUpdateView, DistributorQuestTaskCreateView, DistributorQuestTaskUpdateView, QuestionaryCompleted, DistributorCreateView, DistributorUpdateView
__author__ = 'alexy'
urlpatterns = patterns('apps.distributor.views', url('^$', login_required(
    DistributorListView.as_view()), name='list'), url('^add/$',
    login_required(DistributorCreateView.as_view()), name='add'), url(
    '^(?P<pk>\\d+)/$', login_required(DistributorUpdateView.as_view()),
    name='update'), url('^payment_update/$', distributor_payment_update,
    name='payment-update'), url('^report/$', login_required(
    DistributorReportView.as_view()), name='report'), url('^report/excel/$',
    'distributor_report_excel', name='report-excel'), url(
    '^report/detail/(?P<pk>\\d+)/$', 'distributor_detail_report_excel',
    name='report-detail'), url('^tasks/$', login_required(
    DistributorTaskListView.as_view()), name='task-list'), url(
    '^tasks/archive/$', login_required(DistributorTaskArchiveView.as_view()
    ), name='task-archive'), url('^task/add/$', login_required(
    DistributorTaskCreateView.as_view()), name='task-add'), url(
    '^task/(?P<pk>\\d+)/$', login_required(DistributorTaskUpdateView.
    as_view()), name='task-update'), url('^task/promo/add/$',
    login_required(DistributorPromoTaskCreateView.as_view()), name=
    'task-promo-add'), url('^task/promo/(?P<pk>\\d+)/$', login_required(
    DistributorPromoTaskUpdateView.as_view()), name='task-promo-update'),
    url('^task/quest/add/$', login_required(DistributorQuestTaskCreateView.
    as_view()), name='task-quest-add'), url('^task/quest/(?P<pk>\\d+)/$',
    login_required(DistributorQuestTaskUpdateView.as_view()), name=
    'task-quest-update'), url('^questionarycoplated/(?P<pk>\\d+)/$',
    login_required(QuestionaryCompleted.as_view()), name=
    'questionary-completed'), url('^task/(?P<pk>\\d+)/map/$',
    'distributor_task_update_map', name='task-update-map'), url(
    '^point/(?P<pk>\\d+)/$', 'gps_point_update', name='gpspoint-update'),
    url('^point/(?P<pk>\\d+)/photo/$', get_point_photo_list, name=
    'gpspoint-photo-list'), url('^get_distr_and_area_for_sale/$',
    get_task_initial, name='get_task_initial'), url(
    '^get_task_coord_list/$', get_task_cord_list, name='get_task_cord_list'
    ), url('^get_current_location/$', get_current_location, name=
    'get_current_location'), url('^ajax_photo_delete/$', ajax_remove_photo,
    name='ajax_remove_photo'))

# coding=utf-8
from django.contrib.auth.decorators import login_required
from django.conf.urls import patterns, url

from .ajax import distributor_payment_update, get_task_initial, get_task_cord_list, get_current_location, \
    ajax_remove_photo, get_point_photo_list
from .views import DistributorListView, DistributorTaskListView, DistributorTaskArchiveView,\
    DistributorTaskCreateView, DistributorTaskUpdateView, DistributorReportView, DistributorPromoTaskCreateView, \
    DistributorPromoTaskUpdateView, DistributorQuestTaskCreateView, DistributorQuestTaskUpdateView, \
    QuestionaryCompleted, DistributorCreateView, DistributorUpdateView

__author__ = 'alexy'

urlpatterns = patterns(
    'apps.distributor.views',
    url(r'^$', login_required(DistributorListView.as_view()), name='list'),
    url(r'^add/$', login_required(DistributorCreateView.as_view()), name='add'),
    url(r'^(?P<pk>\d+)/$', login_required(DistributorUpdateView.as_view()), name='update'),
    url(r'^payment_update/$', distributor_payment_update, name='payment-update'),
    # report
    url(r'^report/$', login_required(DistributorReportView.as_view()), name='report'),
    url(r'^report/excel/$', 'distributor_report_excel', name='report-excel'),
    url(r'^report/detail/(?P<pk>\d+)/$', 'distributor_detail_report_excel', name='report-detail'),
    # tasks
    url(r'^tasks/$', login_required(DistributorTaskListView.as_view()), name='task-list'),
    url(r'^tasks/archive/$', login_required(DistributorTaskArchiveView.as_view()), name='task-archive'),
    url(r'^task/add/$', login_required(DistributorTaskCreateView.as_view()), name='task-add'),
    url(r'^task/(?P<pk>\d+)/$', login_required(DistributorTaskUpdateView.as_view()), name='task-update'),

    url(r'^task/promo/add/$', login_required(DistributorPromoTaskCreateView.as_view()), name='task-promo-add'),
    url(r'^task/promo/(?P<pk>\d+)/$', login_required(DistributorPromoTaskUpdateView.as_view()),
        name='task-promo-update'),

    url(r'^task/quest/add/$', login_required(DistributorQuestTaskCreateView.as_view()), name='task-quest-add'),
    url(r'^task/quest/(?P<pk>\d+)/$', login_required(DistributorQuestTaskUpdateView.as_view()),
        name='task-quest-update'),
    url(r'^questionarycoplated/(?P<pk>\d+)/$', login_required(QuestionaryCompleted.as_view()),
        name='questionary-completed'),

    url(r'^task/(?P<pk>\d+)/map/$', 'distributor_task_update_map', name='task-update-map'),
    url(r'^point/(?P<pk>\d+)/$', 'gps_point_update', name='gpspoint-update'),
    url(r'^point/(?P<pk>\d+)/photo/$', get_point_photo_list, name='gpspoint-photo-list'),

    # ajax
    url(r'^get_distr_and_area_for_sale/$', get_task_initial, name='get_task_initial'),
    url(r'^get_task_coord_list/$', get_task_cord_list, name='get_task_cord_list'),
    url(r'^get_current_location/$', get_current_location, name='get_current_location'),
    url(r'^ajax_photo_delete/$', ajax_remove_photo, name='ajax_remove_photo'),
)
