Friday, January 22, 2021

Django django_filters DateFilter customization

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 file screenshot is as below.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b44d3a63-7f42-4ce5-9b6a-0a57e412f9cdn%40googlegroups.com.

No comments:

Post a Comment