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']
|
||||
if not set_position.startswith('p:'):
|
||||
return Response({
|
||||
'errors': (_('Invalid set_location.'),),
|
||||
'errors': (_('Invalid set_position.'),),
|
||||
}, status=400)
|
||||
|
||||
try:
|
||||
position = Position.objects.get(secret=set_position[2:])
|
||||
except Position.DoesNotExist:
|
||||
return Response({
|
||||
'errors': (_('Invalid set_location.'),),
|
||||
'errors': (_('Invalid set_position.'),),
|
||||
}, status=400)
|
||||
|
||||
form_data = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue