Commit 6e061d2d authored by ibuler's avatar ibuler

[Bugfix] 修改小bug

parent b2717133
...@@ -25,7 +25,7 @@ class TerminalRegistrationApi(generics.CreateAPIView): ...@@ -25,7 +25,7 @@ class TerminalRegistrationApi(generics.CreateAPIView):
http_method_names = ['post'] http_method_names = ['post']
def create(self, request, *args, **kwargs): def create(self, request, *args, **kwargs):
data = request.data data = {k: v for k, v in request.data.items()}
serializer = serializers.TerminalSerializer( serializer = serializers.TerminalSerializer(
data=data, context={'request': request} data=data, context={'request': request}
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment