|
29 | 29 | )
|
30 | 30 |
|
31 | 31 | (StockRecordDetail, PartnerList, PartnerDetail) = get_api_classes(
|
32 |
| - "views.admin.partner", ["StockRecordDetail", "PartnerList", "PartnerDetail"] |
| 32 | + "views.admin.partner", ["StockRecordDetail", |
| 33 | + "PartnerList", "PartnerDetail"] |
33 | 34 | )
|
34 | 35 |
|
35 | 36 | (
|
|
149 | 150 | ],
|
150 | 151 | )
|
151 | 152 |
|
| 153 | +( |
| 154 | + BasketAdminList, |
| 155 | + BasketAdminDetail, |
| 156 | + |
| 157 | +) = get_api_classes( |
| 158 | + "views.admin.basket", |
| 159 | + [ |
| 160 | + "BasketAdminList", |
| 161 | + "BasketAdminDetail", |
| 162 | + ], |
| 163 | +) |
| 164 | + |
152 | 165 | (UserAdminList, UserAdminDetail) = get_api_classes(
|
153 | 166 | "views.admin.user", ["UserAdminList", "UserAdminDetail"]
|
154 | 167 | )
|
|
219 | 232 | path("orders/", OrderList.as_view(), name="order-list"),
|
220 | 233 | path("orders/<int:pk>/", OrderDetail.as_view(), name="order-detail"),
|
221 | 234 | path("orders/<int:pk>/lines/", OrderLineList.as_view(), name="order-lines-list"),
|
222 |
| - path("orderlines/<int:pk>/", OrderLineDetail.as_view(), name="order-lines-detail"), |
| 235 | + path("orderlines/<int:pk>/", OrderLineDetail.as_view(), |
| 236 | + name="order-lines-detail"), |
223 | 237 | path(
|
224 | 238 | "orderlineattributes/<int:pk>/",
|
225 | 239 | OrderLineAttributeDetail.as_view(),
|
|
238 | 252 | ]
|
239 | 253 |
|
240 | 254 | admin_urlpatterns = [
|
| 255 | + path("baskets/", BasketAdminList.as_view(), name="admin-basket-list"), |
| 256 | + path( |
| 257 | + "baskets/<int:pk>/", |
| 258 | + BasketAdminDetail.as_view(), |
| 259 | + name="admin-basket-detail", |
| 260 | + ), |
| 261 | + |
241 | 262 | path("products/", ProductAdminList.as_view(), name="admin-product-list"),
|
242 | 263 | path(
|
243 | 264 | "products/<int:pk>/",
|
|
0 commit comments