I'm using Django with PostgreSQL. I have a model with a IntegerRangeField.
When using {{ field }} in template the result is (for example) NumericRange(2, 8, '[)')
How can I get the range numbers in my template?
I tried {{ field.0 }} and {{ field.1 }} but got no output (I expected 2 and 8 respectively).
Try out {{ field.upper }} and {{ field.lower}}.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With