Ticket #8763: 8763_generic_relations_sort.diff

File 8763_generic_relations_sort.diff, 461 bytes (added by Richard Davies <richard.davies@…>, 16 years ago)
  • tests/modeltests/generic_relations/models.py

     
    2222    content_object = generic.GenericForeignKey()
    2323
    2424    class Meta:
    25         ordering = ["tag"]
     25        ordering = ["tag", "-object_id"]
    2626
    2727    def __unicode__(self):
    2828        return self.tag
Back to Top