Saturday, October 29, 2022

Re: Filter questions with dates

To generate the list of years for your select you can use dates [1].

[1] https://docs.djangoproject.com/en/dev/ref/models/querysets/#dates

On October 28, 2022 9:22:14 AM CDT, Lakshyaraj Dash <dashlakshyaraj2006@gmail.com> wrote:
I want a select menu with months and years written against the corresponding month. When I will click the filter button the blogs should be filtered with the corresponding month and year.

On Fri, Oct 28, 2022, 19:04 Ryan Nowakowski <ryan@fattuba.com> wrote:
Is your question around how to do the date filtering in the view or how to set up the filter in the template?

On October 27, 2022 9:08:06 AM CDT, Lakshyaraj Dash <dashlakshyaraj2006@gmail.com> wrote:
I have search filters and tagwise filters and just want to add date filters.

On Thu, Oct 27, 2022, 19:34 Ryan Nowakowski <ryan@fattuba.com> wrote:
Do you already have other kinds of filters in place and just need help adding a date filter, or do you need help with filtering in general?

On October 25, 2022 11:00:43 PM CDT, Lakshyaraj Dash <dashlakshyaraj2006@gmail.com> wrote:
I'm having a forums project in which I want to add a date filter for questions like when a user clicks on a specific date the questions related to the date will be filter like 24 Dec 2021 will show 24122022...

--
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/BD9E1263-A0CE-4467-8966-72BB3EF755EC%40fattuba.com.

--
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/EB883B2D-62DD-43B0-A7A2-C1B3EFE9DD0B%40fattuba.com.

No comments:

Post a Comment