massive product load implementation, not tested

This commit is contained in:
Sam
2021-02-03 12:24:18 +00:00
parent f3698014e6
commit 05fa09a8f3
4 changed files with 84 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ from django.conf import settings
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView, TokenVerifyView
from core import views as core_views
from products import views as product_views
from .routers import router
@@ -31,6 +32,7 @@ urlpatterns = [
path('api/v1/token/verify/', TokenVerifyView.as_view(), name='token_verify'),
path('api/v1/user/change_password/<int:pk>/', core_views.ChangeUserPasswordView.as_view(), name="change-password"),
path('api/v1/user/update/<int:pk>/', core_views.UpdateUserView.as_view(), name="update-user"),
path('api/v1/load_coops/', core_views.load_coop_managers, name='csv-loader'),
path('api/v1/load_coops/', core_views.load_coop_managers, name='coop-loader'),
path('api/v1/load_products/', product_views.load_coop_products, name='product-loader'),
path('api/v1/', include(router.urls)),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)