You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Range Fields map to Django's PostgreSQL specific [Range Fields](https://docs.djangoproject.com/en/stable/ref/contrib/postgres/fields/#range-fields).
134
+
135
+
Each accepts an optional parameter `child_attrs`, which allows passing parameters to the child field.
136
+
137
+
For example, calling `IntegerRangeField(child_attrs={"allow_null": True})` allows deserializing data with a null value for `lower` and/or `upper`:
138
+
139
+
```python
140
+
from rest_framework import serializers
141
+
from drf_extra_fields.fields import IntegerRangeField
0 commit comments