If you have a serializer like this with a IntegerRangeField
class StuffSerializer(serializers.ModelSerializer):
numbers = IntegerRangeField(
default=NumericRange(lower=0, upper=86400),
required=False,
allow_null=True,
)
At creation time it will create a query that has a double cast '(,)'::numrange::int4range
This happens because NumericRange is casted by the psycopq transformer.
If you have a serializer like this with a
IntegerRangeFieldAt creation time it will create a query that has a double cast
'(,)'::numrange::int4rangeThis happens because
NumericRangeis casted by thepsycopqtransformer.