[Bugfix] 修改小bug

pull/2357/head
ibuler 2019-01-17 18:39:38 +08:00
parent b2717133ee
commit 6e061d2da5
1 changed files with 1 additions and 1 deletions

View File

@ -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}
)