mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-22 02:18:21 +02:00
Implementing QRcode creation, modifying Allergen model and creating of few views
This commit is contained in:
@ -5,15 +5,19 @@ from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
###############################
|
||||
# TO DO
|
||||
# - name url correctly, thinking about the scheme of the app
|
||||
###############################
|
||||
|
||||
app_name = 'food'
|
||||
|
||||
urlpatterns = [
|
||||
path('0', views.BasicFoodCreateView.as_view(), name = 'basic_food'),
|
||||
path('1', views.TransformedFoodCreateView.as_view(), name = 'transformed_food'),
|
||||
]
|
||||
path('<int:slug>', views.QRCodeView.as_view(), name='qrcode_view'),
|
||||
path('detail/<int:pk>', views.FoodView.as_view(), name='food_view'),
|
||||
|
||||
path('<int:slug>/create_qrcode', views.QRCodeCreateView.as_view(), name='qrcode_create'),
|
||||
path('create', views.FoodCreateView.as_view(), name='food_create'),
|
||||
path('<int:slug>/create_qrcode/basic', views.QRCodeBasicFoodCreateView.as_view(), name='qrcode_basic_create'),
|
||||
path('<int:slug>/create_qrcode/transformed', views.QRCodeTransformedFoodCreateView.as_view(), name='qrcode_transformed_create'),
|
||||
path('create/basic', views.BasicFoodCreateView.as_view(), name='basic_create'),
|
||||
path('create/transformed', views.TransformedFoodCreateView.as_view(), name='transformed_create'),
|
||||
|
||||
path('update/basic/<int:pk>', views.BasicFoodUpdateView.as_view(), name='basic_update'),
|
||||
path('update/transformed/<int:pk>', views.TransformedFoodUpdateView.as_view(), name='transformed_update'),
|
||||
]
|
||||
|
Reference in New Issue
Block a user