Add tests for GETting views in control/

This commit is contained in:
Tobias Kunze
2016-10-27 23:14:23 +02:00
committed by Raphael Michel
parent 142750f8c2
commit 95670dddc2
2 changed files with 142 additions and 0 deletions

View File

@@ -203,6 +203,9 @@ class OrderComment(OrderView):
messages.error(self.request, _('Could not update the comment.'))
return redirect(self.get_order_url())
def get(self, *args, **kwargs):
return HttpResponseNotAllowed(['POST'])
class OrderTransition(OrderView):
permission = 'can_change_orders'