invalid data? we'll tell you off!
This commit is contained in:
parent
321c5a34a0
commit
a319da872c
1 changed files with 4 additions and 0 deletions
|
@ -124,6 +124,10 @@ class RoutingViewSet(ViewSet):
|
|||
data = {}
|
||||
else:
|
||||
data = request.data
|
||||
if 'stations' not in data:
|
||||
return Response({
|
||||
'errors': (_('stations is missing.'),),
|
||||
}, status=400)
|
||||
stations_data = data['stations']
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue