django-nonrel/djangotoolbox — Issue #7: order refactor breaks QuerySet.reverse()
Author: aburgel
Created: 2011-12-29 21:02:43+00:00
State: open

commit bd292d69c45d93ca87885af86ee38ecf56a34043 excludes `self.query.standard_ordering` which handles `reverse()`. here's a test case. i'm going to work on a fix.

```
def test_reverse(self):
class DBColumn(models.Model):
a = models.IntegerField(db_column='b')
model1 = DBColumn.objects.create(a=1)
model2 = DBColumn.objects.create(a=2)
self.assertEqual(list(DBColumn.objects.all().order_by('a').reverse()), [model2, model1])
self.assertEqual(list(DBColumn.objects.all().order_by('-a').reverse()), [model1, model2])
```