Re: how to exclude DateTime that are None

2009-11-02 Thread Brian Neal
On Nov 2, 3:44 pm, Felipe Reyes wrote: > Hi everybody, > > I'm using django 0.96, one of my models has a DateTimeField, I'm > trying to exclude the from the queryset the rows that have null in the > datetimefield, I'm using something like this: > >

how to exclude DateTime that are None

2009-11-02 Thread Felipe Reyes
Hi everybody, I'm using django 0.96, one of my models has a DateTimeField, I'm trying to exclude the from the queryset the rows that have null in the datetimefield, I'm using something like this: MyObject.objects.exclude(somedatecol=None) that line gave me the following error DataError: