From ee307e0e2ca9dbfa742123cb5990259e41cccbb8 Mon Sep 17 00:00:00 2001 From: Tanshu Date: Fri, 7 Dec 2012 21:15:40 +0530 Subject: [PATCH] Fixed error where voucher could not be deleted because of wrong route for delete function. --- brewman/brewman/views/services/voucher/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brewman/brewman/views/services/voucher/__init__.py b/brewman/brewman/views/services/voucher/__init__.py index 62cd8b69..d8ad9976 100644 --- a/brewman/brewman/views/services/voucher/__init__.py +++ b/brewman/brewman/views/services/voucher/__init__.py @@ -82,7 +82,7 @@ def check_delete_permissions(request, voucher): return response -@view_config(request_method='DELETE', route_name='api_voucher', renderer='json') +@view_config(request_method='DELETE', route_name='api_voucher_id', renderer='json') def delete(request): voucher = Voucher.by_id(uuid.UUID(request.matchdict['id'])) permission = check_delete_permissions(request, voucher)