Changes between Initial Version and Version 1 of Ticket #6366


Ignore:
Timestamp:
Jan 12, 2008, 8:22:39 PM (17 years ago)
Author:
Gary Wilson
Comment:

fixed formatting it ticket description.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6366 – Description

    initial v1  
    33Code to validate this,
    44
    5 
     5{{{
     6#!python
    67class FeaturedPage(models.Model):
    78    ordering = models.IntegerField(default = 0, unique = True)
    89
    910featured_pages = FeaturedPage.objects.all().order_by('-ordering')
     11}}}
    1012
    1113This works, but if you add
    1214
    13 
     15{{{
     16#!python
    1417    class Meta:
    1518        get_latest_by = '-ordering'
     19}}}
    1620and do FeaturedPage.objects.latest(),
    1721It raises OperationalError.
Back to Top