Added GTIN product storage and remote service integration

This commit is contained in:
2022-04-13 15:42:09 +02:00
parent f1dab1c0a1
commit 4da41fe1cd
8 changed files with 117 additions and 6 deletions

View File

@@ -1,11 +1,12 @@
from django.urls import path
from . import views
from asset.views import AssetCreateView, AssetDeleteView, AssetUpdateView, AssetListView
from asset.views import AssetCreateView, AssetDeleteView, AssetUpdateView, AssetListView, asset_from_gtin
app_name = 'asset'
urlpatterns = [
path('', AssetListView.as_view(), name='list'),
path('add/', AssetCreateView.as_view(), name='add'),
path('addbygtin/', asset_from_gtin, name='add-by-gtin'),
path('<int:pk>/', AssetUpdateView.as_view(), name='update'),
path('<int:pk>/', AssetUpdateView.as_view(), name='detail'),
path('<int:pk>/delete/', AssetDeleteView.as_view(), name='delete'),