dispatch: include 'message': "" in /message GET
mostly as a hint to illustrate how to use the thing
This commit is contained in:
parent
3532b073c4
commit
bece1745b3
|
@ -49,7 +49,7 @@ class DispatchMessage(generics.GenericAPIView):
|
|||
|
||||
def get(self, request, *args, **kwargs):
|
||||
dispatcher = self.get_object()
|
||||
data = {'status': "READY"}
|
||||
data = {'message': "", 'status': "READY"}
|
||||
message = self.serializer_class(data=data)
|
||||
return Response(message.initial_data)
|
||||
|
||||
|
|
Loading…
Reference in New Issue