Ticket #8763: 8763_generic_relations_sort.diff
File 8763_generic_relations_sort.diff, 461 bytes (added by , 16 years ago) |
---|
-
tests/modeltests/generic_relations/models.py
22 22 content_object = generic.GenericForeignKey() 23 23 24 24 class Meta: 25 ordering = ["tag" ]25 ordering = ["tag", "-object_id"] 26 26 27 27 def __unicode__(self): 28 28 return self.tag