Allow redeem by secret with special chars

This commit is contained in:
Raphael Michel
2020-10-18 16:04:42 +02:00
parent 0a1a9fcf88
commit 7c212ba79d
2 changed files with 15 additions and 1 deletions

View File

@@ -262,7 +262,7 @@ class CheckinListPositionViewSet(viewsets.ReadOnlyModelViewSet):
return qs
@action(detail=False, methods=['POST'], url_name='redeem', url_path='(?P<pk>[^/]+)/redeem')
@action(detail=False, methods=['POST'], url_name='redeem', url_path='(?P<pk>.*)/redeem')
def redeem(self, *args, **kwargs):
force = bool(self.request.data.get('force', False))
type = self.request.data.get('type', None) or Checkin.TYPE_ENTRY