pull/43/head
JamesRamm 2017-03-13 09:09:42 +00:00
rodzic 80eaba36f2
commit 74e7ae1168
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -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'
) )
) ]