Verified Commit 87f03659 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed splitting issue on multiple search consumer

parent 2cfc0bd3
......@@ -5,7 +5,7 @@ class Lookup(serializers.CharField):
def to_internal_value(self, value):
value = super().to_internal_value(value)
lookup_type, lookup = value.split(":")
lookup_type, lookup = value.split(":", 1)
except (ValueError, TypeError, AttributeError):
raise serializers.ValidationError("Invalid lookup {}".format(value))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment