Re: daterange filter

2014-11-21 Thread Collin Anderson
Hi, I'm actually having a hard time seeing how your code matches up with the django-daterange-filter code you linked to. One thing to try is to as much as possible use dates instead of datetimes, or otherwise, yes, you'll need to use timedelta(days=1). Also, the "None" value means that they ke

Re: daterange filter

2014-11-17 Thread Sachin Tiwari
On Saturday, November 15, 2014 4:47:12 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I am using below daterange filter package but it did not work if > from_date and to_date field are same, > > > https://github.com/DXist/django-daterange-filter/blob/master/daterange_filter/filter.py > > P

Re: daterange filter

2014-11-17 Thread Collin Anderson
Hello, to_date = self.form.fields.get('measureddate__lte') I think you want something more like this: self.form.cleaned_data.get('measureddate__lte') Collin On Saturday, November 15, 2014 6:17:12 AM UTC-5, Sachin Tiwari wrote: > > Hi All, > > I am using below daterange filter package but it

Re: daterange filter

2014-11-15 Thread Sachin Tiwari
On Saturday, November 15, 2014 4:47:12 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I am using below daterange filter package but it did not work if > from_date and to_date field are same, > > > https://github.com/DXist/django-daterange-filter/blob/master/daterange_filter/filter.py > > P