monim67 / django-bootstrap-datepicker-plus

Bootstrap3/Bootstrap4/Bootstrap5 DatePickerInput, TimePickerInput, DateTimePickerInput, MonthPickerInput, YearPickerInput with date-range-picker functionality for django >= 2.0
https://pypi.python.org/pypi/django-bootstrap-datepicker-plus
MIT License
223 stars 63 forks source link

How to exploit the range picker #22

Closed alvarolloret closed 5 years ago

alvarolloret commented 5 years ago

Hi! Thanks for this amazing widget! I was just gessing if the start_of end_off could be set to a specific date. From documentation it only appears code such as: .end_of('event days') . Is it possible to set it up something like .end_of('2019-01-01') ?

I'm using form.Forms not ModelForms

monim67 commented 5 years ago

You don't need to exploit the range-picker, you need to set maxDate option, refer to README to see how to set options.

The start_of and end_of methods just links two input field to an event so that range-picker can work.

alvarolloret commented 5 years ago

Perfect, thanks for that!