dispatch: don't override get_object() in /message
This commit is contained in:
parent
5877c991b0
commit
e194ae0319
@ -54,11 +54,6 @@ class DispatchMessage(generics.GenericAPIView):
|
||||
queryset = Dispatcher.objects.all()
|
||||
serializer_class = DispatchMessageSerializer
|
||||
|
||||
def get_object(self):
|
||||
queryset = self.get_queryset()
|
||||
queryset = self.filter_queryset(queryset)
|
||||
return get_object_or_404(queryset)
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
dispatcher = self.get_object()
|
||||
data = {'message': "", 'status': "READY"}
|
||||
|
Loading…
Reference in New Issue
Block a user