Problem with order_by on one record only

2012-06-15 Thread Alex Umrysh
I'm having a strange error on an object query when I try to do negative order_by. This is on an Oracle 11 database with Django 1.4 it looks something like: MyModel.objects.filter(pk=N).order_by('-datetime')[:5] This gives me valid data for all values of N in the database except for one specific

Re: Problem with order_by on one record only

2012-07-31 Thread Alex Umrysh
are actually fixed point to begin with, I don't really mind as the precision was set to a certain amount before it ever hit my database. Hope this helps someone else down the line. On Friday, June 15, 2012 5:42:28 PM UTC-4, Alex Umrysh wrote: > > I'm having a strange error on a