fix typos
This commit is contained in:
parent
c8d0a8f5ee
commit
4fcca5bb08
1 changed files with 2 additions and 2 deletions
|
@ -139,14 +139,14 @@ class RoutingViewSet(ViewSet):
|
||||||
set_position = data['set_position']
|
set_position = data['set_position']
|
||||||
if not set_position.startswith('p:'):
|
if not set_position.startswith('p:'):
|
||||||
return Response({
|
return Response({
|
||||||
'errors': (_('Invalid set_location.'),),
|
'errors': (_('Invalid set_position.'),),
|
||||||
}, status=400)
|
}, status=400)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
position = Position.objects.get(secret=set_position[2:])
|
position = Position.objects.get(secret=set_position[2:])
|
||||||
except Position.DoesNotExist:
|
except Position.DoesNotExist:
|
||||||
return Response({
|
return Response({
|
||||||
'errors': (_('Invalid set_location.'),),
|
'errors': (_('Invalid set_position.'),),
|
||||||
}, status=400)
|
}, status=400)
|
||||||
|
|
||||||
form_data = {
|
form_data = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue