kopia lustrzana https://github.com/longclawshop/longclaw
Fix error
rodzic
80eaba36f2
commit
74e7ae1168
|
@ -4,22 +4,22 @@ from longclaw.longclaworders import api
|
||||||
|
|
||||||
from longclaw.settings import API_URL_PREFIX
|
from longclaw.settings import API_URL_PREFIX
|
||||||
|
|
||||||
# Bookings
|
|
||||||
orders = api.OrderViewSet.as_view({
|
orders = api.OrderViewSet.as_view({
|
||||||
'get': 'retrieve',
|
'get': 'retrieve',
|
||||||
})
|
})
|
||||||
|
|
||||||
urlpatterns = (
|
urlpatterns = [
|
||||||
### VIEWS ###
|
### VIEWS ###
|
||||||
url(
|
url(
|
||||||
r'^order/(?P<pk>[0-9]+)/$',
|
API_URL_PREFIX + r'order/(?P<pk>[0-9]+)/$',
|
||||||
orders,
|
orders,
|
||||||
name='orders'
|
name='orders'
|
||||||
),
|
),
|
||||||
|
|
||||||
url(
|
url(
|
||||||
API_URL_PREFIX + r'^order/(?P<pk>[0-9]+)/fulfill/$',
|
API_URL_PREFIX + r'order/(?P<pk>[0-9]+)/fulfill/$',
|
||||||
api.fulfill_order,
|
api.fulfill_order,
|
||||||
name='fulfill_order'
|
name='fulfill_order'
|
||||||
)
|
)
|
||||||
)
|
]
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue