Hi All,
I am look for a solution where I can restrict the user to select date from
current month only instead of selecting any other month or year.
Currently user can select past month as well, have to restrict for current
month only in date picker.
Please help.
Below is the code.
filters.py
Hi Maynak,
On 22/01/2021 21.34, Mayank Tripathi wrote:
Hi All,
I am look for a solution where I can restrict the user to select date
from current month only instead of selecting any other month or year.
Currently user can select past month as well, have to restrict for
current month only in
Thanks Kasper,
Will try the suggested option.
Meanwhile, do you know how to get the documentation for danjo_filters
DateFilter() method, and want to know what all parameters it can accept.
Usually we do pass field_name; lookup_expr; label , just curious if we
could pass *attrs *as we pass in for
Thanks Kasper,
I utilized the suggestion you shared, and implemented it with a custom
template tag, and now am able to restrict it.
[image: image.png]
Thanks & Regards,
-
Mayank Tripathi
Mo. +1 615 962 2128
"Do what you can, with what you have, where you are -by Theodore Roos
Hi Mayank,
On 22/01/2021 23.43, _M_A_Y_A_N_K_ wrote:
Thanks Kasper,
I utilized the suggestion you shared, and implemented it with a custom
template tag, and now am able to restrict it.
You are very welcome. Glad to hear it worked for you and thanks for
sharing your solution.
All the bes
5 matches
Mail list logo