1850746975
Also give a coherent look to all inventory lists
24 lines
743 B
Python
24 lines
743 B
Python
from django.urls import path
|
|
from .views import (
|
|
InventoryView,
|
|
CategoryListView,
|
|
CategoryView,
|
|
TagListView,
|
|
TagView,
|
|
GameListView,
|
|
GameView,
|
|
InventorySearchView,
|
|
)
|
|
|
|
app_name = "inventory"
|
|
|
|
urlpatterns = [
|
|
path("", InventoryView.as_view(), name="inventory"),
|
|
path("category/", CategoryListView.as_view(), name="category_list"),
|
|
path("category/<slug>/", CategoryView.as_view(), name="category"),
|
|
path("tag/", TagListView.as_view(), name="tag_list"),
|
|
path("tag/<slug>/", TagView.as_view(), name="tag"),
|
|
path("game/", GameListView.as_view(), name="game_list"),
|
|
path("game/<slug>/", GameView.as_view(), name="game"),
|
|
path("search/", InventorySearchView.as_view(), name="search"),
|
|
]
|