Changes between Initial Version and Version 1 of Ticket #6366
- Timestamp:
- Jan 12, 2008, 8:22:39 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6366 – Description
initial v1 3 3 Code to validate this, 4 4 5 5 {{{ 6 #!python 6 7 class FeaturedPage(models.Model): 7 8 ordering = models.IntegerField(default = 0, unique = True) 8 9 9 10 featured_pages = FeaturedPage.objects.all().order_by('-ordering') 11 }}} 10 12 11 13 This works, but if you add 12 14 13 15 {{{ 16 #!python 14 17 class Meta: 15 18 get_latest_by = '-ordering' 19 }}} 16 20 and do FeaturedPage.objects.latest(), 17 21 It raises OperationalError.