diff --git a/akvo/rest/filters.py b/akvo/rest/filters.py index a1a3ad3b02..885f97916a 100644 --- a/akvo/rest/filters.py +++ b/akvo/rest/filters.py @@ -66,7 +66,7 @@ def eval_query_value(request, key): queryset = getattr(queryset, param)(*args_or_kwargs) except FieldError as e: - raise APIException("Error in request. Error msg:\n {message}".format(message=e.message)) + raise APIException("Error in request: {message}".format(message=e.message)) # support for Q expressions, limited to OR-concatenated filtering if request.QUERY_PARAMS.get('q_filter1', None):