mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修改小bug
parent
b2717133ee
commit
6e061d2da5
|
@ -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}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue