Browse Source

[Bugfix] 修改小bug

pull/2357/head
ibuler 6 years ago
parent
commit
6e061d2da5
  1. 2
      apps/terminal/api/v2/terminal.py

2
apps/terminal/api/v2/terminal.py

@ -25,7 +25,7 @@ class TerminalRegistrationApi(generics.CreateAPIView):
http_method_names = ['post']
def create(self, request, *args, **kwargs):
data = request.data
data = {k: v for k, v in request.data.items()}
serializer = serializers.TerminalSerializer(
data=data, context={'request': request}
)

Loading…
Cancel
Save