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
|
||||
|
||||
# Bookings
|
||||
orders = api.OrderViewSet.as_view({
|
||||
'get': 'retrieve',
|
||||
})
|
||||
|
||||
urlpatterns = (
|
||||
urlpatterns = [
|
||||
### VIEWS ###
|
||||
url(
|
||||
r'^order/(?P<pk>[0-9]+)/$',
|
||||
API_URL_PREFIX + r'order/(?P<pk>[0-9]+)/$',
|
||||
orders,
|
||||
name='orders'
|
||||
),
|
||||
|
||||
url(
|
||||
API_URL_PREFIX + r'^order/(?P<pk>[0-9]+)/fulfill/$',
|
||||
API_URL_PREFIX + r'order/(?P<pk>[0-9]+)/fulfill/$',
|
||||
api.fulfill_order,
|
||||
name='fulfill_order'
|
||||
)
|
||||
)
|
||||
]
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue