mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Add tests for GETting views in control/
This commit is contained in:
committed by
Raphael Michel
parent
142750f8c2
commit
95670dddc2
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user