Hi I have a django form choice field, which needs a choice selection of range 85-150 at 5 unit increments. Unfortunately I can’t do this:
wind_range = range(85, 150, 5)
WIND_SPEED_CHOICE = (
for i in wind_range:
(i, i),
)
Any suggestions?
Any help much appreciated.
Quoting django model field reference doc:
This means that this can be a solution to you: