Re: Django Search Between 2 Dates

2021-02-04 Thread Siarhei Siarhei
https://otus.ru/nest/post/286/ среда, 3 февраля 2021 г. в 21:12:36 UTC+3, thiago.parolin: > If you want clien-side, then you need to make some script-fu using jquery > or anything like that. > > Em qua., 3 de fev. de 2021 às 10:40, Steven Mapes > escreveu: > >> Are you looking at client-side

Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
If you want clien-side, then you need to make some script-fu using jquery or anything like that. Em qua., 3 de fev. de 2021 às 10:40, Steven Mapes escreveu: > Are you looking at client-side filtering within datatables or server side > filtering? Thiago's suggestion related to using filters when

Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
I will try to explain, although I am not a good teacher. Suppose you have an 'Example' model that has a 'data' field with 'auto_now_add = True' And a function 'yesterday()' that returns yesterday, and 'past()' that returns 'yesterday() minus some days'. if you want to filter items between yesterd

Re: Django Search Between 2 Dates

2021-02-03 Thread Steven Mapes
Are you looking at client-side filtering within datatables or server side filtering? Thiago's suggestion related to using filters when you fetch the queryset (https://docs.djangoproject.com/en/3.1/topics/db/queries/#retrieving-specific-objects-with-filters) On Wednesday, 3 February 2021 at 13:2

Re: Django Search Between 2 Dates

2021-02-03 Thread Eugene TUYIZERE
Dear Thiago, Can I have some documentations or sample codes please? On Wed, 3 Feb 2021 at 15:16, Thiago Luiz Parolin wrote: > Hi... > Normally i use field__lte and field__gte > > Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE > escreveu: > >> Dear Team, >> >> I need help. I have a list of Ite

Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
Hi... Normally i use field__lte and field__gte Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE escreveu: > Dear Team, > > I need help. I have a list of Items in a table. And I want to filter some > data between dates (start and end date). Please help me to do a search > between the two date. I a

Django Search Between 2 Dates

2021-02-03 Thread Eugene TUYIZERE
Dear Team, I need help. I have a list of Items in a table. And I want to filter some data between dates (start and end date). Please help me to do a search between the two date. I am using Data table but I can use the other way if possible for this purpose. Regards, -- *TUYIZERE Eugene* *Msc