|
@@ -12,7 +12,8 @@ router.register(r'sharix-users', SharixUserMVS)
|
|
router.register(r'group', GroupMVS)
|
|
router.register(r'group', GroupMVS)
|
|
|
|
|
|
urlpatterns = [
|
|
urlpatterns = [
|
|
- #path('auth/', LoginSharix.as_view(), name='auth'),
|
|
|
|
|
|
+ #path('auth/', LoginSharix.as_view(), name='auth')
|
|
|
|
+
|
|
path('accounts/login/', LoginSharix.as_view(), name='authweb'),
|
|
path('accounts/login/', LoginSharix.as_view(), name='authweb'),
|
|
path('', index, name='home'),
|
|
path('', index, name='home'),
|
|
path('transactions/', transactions, name='trans'),
|
|
path('transactions/', transactions, name='trans'),
|
|
@@ -20,7 +21,13 @@ urlpatterns = [
|
|
path('logout/', logout_view, name='logoutweb'),
|
|
path('logout/', logout_view, name='logoutweb'),
|
|
path('balance/', balance, name='balance'),
|
|
path('balance/', balance, name='balance'),
|
|
path('test/', testPage, name='test-page'),
|
|
path('test/', testPage, name='test-page'),
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ path('cooperation/', login_required(CooperationListView.as_view()), name='cooperation'),
|
|
|
|
+ path('cooperation/change_status/', change_cooperation_status, name='cooperation/change_status'),
|
|
|
|
+
|
|
|
|
+ path('become_partner/', login_required(become_partnerListView.as_view()), name='become_partner'),
|
|
|
|
+ path('become_partner/change_status/', change_become_partner_status, name='become_partner/change_status'),
|
|
|
|
+
|
|
path('partners/', login_required(PartnersListView.as_view()), name='partners'),
|
|
path('partners/', login_required(PartnersListView.as_view()), name='partners'),
|
|
path('partners/change_status/', change_partners_status, name='partners/change_status'),
|
|
path('partners/change_status/', change_partners_status, name='partners/change_status'),
|
|
|
|
|
|
@@ -30,6 +37,7 @@ urlpatterns = [
|
|
path('provider/', login_required(ProviderListView.as_view()), name='provider'),
|
|
path('provider/', login_required(ProviderListView.as_view()), name='provider'),
|
|
path('provider/change_status/', change_provider_status, name='provider/change_status'),
|
|
path('provider/change_status/', change_provider_status, name='provider/change_status'),
|
|
|
|
|
|
|
|
+
|
|
path('service_tariff/', login_required(ServiceTariffListView.as_view()), name='service_tariff'),
|
|
path('service_tariff/', login_required(ServiceTariffListView.as_view()), name='service_tariff'),
|
|
path('service_tariff/add/', login_required(ServiceTariffCreate.as_view()), name='service_tariff/add/'),
|
|
path('service_tariff/add/', login_required(ServiceTariffCreate.as_view()), name='service_tariff/add/'),
|
|
path('service_tariff/edit/<int:pk>', login_required(ServiceTariffUpdateView.as_view()), name='service_tariff/edit/'),
|
|
path('service_tariff/edit/<int:pk>', login_required(ServiceTariffUpdateView.as_view()), name='service_tariff/edit/'),
|
|
@@ -48,6 +56,9 @@ urlpatterns = [
|
|
path('partner_information/add/', login_required(PartnerInformationCreate.as_view()), name='partner_information/add/'),
|
|
path('partner_information/add/', login_required(PartnerInformationCreate.as_view()), name='partner_information/add/'),
|
|
path('partner_information/edit/<int:pk>', login_required(PartnerInformationUpdateView.as_view()), name='partner_information/edit/'),
|
|
path('partner_information/edit/<int:pk>', login_required(PartnerInformationUpdateView.as_view()), name='partner_information/edit/'),
|
|
|
|
|
|
|
|
+ path('become_partner_form/add/', login_required(BecomePartnerCreate.as_view()), name='become_partner_form/add/'),
|
|
|
|
+ path('become_partner_form/edit/<int:pk>', login_required(BecomePartnerUpdateView.as_view()), name='become_partner_form/edit/'),
|
|
|
|
+
|
|
path('user_information', login_required(UserListView.as_view()), name='user_information'),
|
|
path('user_information', login_required(UserListView.as_view()), name='user_information'),
|
|
|
|
|
|
path('api/v1/auth/', include('djoser.urls.authtoken'), name="api-auth"),
|
|
path('api/v1/auth/', include('djoser.urls.authtoken'), name="api-auth"),
|