Ticket #3164: basic_order_by.diff
File basic_order_by.diff, 493 bytes (added by , 18 years ago) |
---|
-
tests/modeltests/basic/models.py
9 9 class Article(models.Model): 10 10 headline = models.CharField(maxlength=100, default='Default headline') 11 11 pub_date = models.DateTimeField() 12 12 class Meta: 13 ordering = ('pub_date',) 14 13 15 def __str__(self): 14 16 return self.headline 15 17