Skip to content
Snippets Groups Projects
Verified Commit 87f03659 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed splitting issue on multiple search consumer

parent 2cfc0bd3
Branches
Tags
No related merge requests found
...@@ -5,7 +5,7 @@ class Lookup(serializers.CharField): ...@@ -5,7 +5,7 @@ class Lookup(serializers.CharField):
def to_internal_value(self, value): def to_internal_value(self, value):
value = super().to_internal_value(value) value = super().to_internal_value(value)
try: try:
lookup_type, lookup = value.split(":") lookup_type, lookup = value.split(":", 1)
except (ValueError, TypeError, AttributeError): except (ValueError, TypeError, AttributeError):
raise serializers.ValidationError("Invalid lookup {}".format(value)) raise serializers.ValidationError("Invalid lookup {}".format(value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment