Hello guys I have a problem that I am not finding how to solve it.
I have something like this:
def get_object(self):
some_request = request.get(url, auth(X, Y))
service_finished =
self.request.query_params.get('service_finished', 'False')
filter_kwargs = {'service_finished':
ast.literal_eval(service_finished.title()),
'active': True}
filter_kwargs.update(self.kwargs)
obj = get_object_or_404(queryset, **filter_kwargs)
return obj
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.