Ticket #640: 640_patch.diff

File 640_patch.diff, 658 bytes (added by Dan Poirier, 12 years ago)

Add a note to the order_with_respect_to doc

  • docs/ref/models/options.txt

    diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt
    index 4ae105a..741155e 100644
    a b Django quotes column and table names behind the scenes.  
    176176        >>> answer.get_previous_in_order()
    177177        <Answer: 1>
    178178
     179.. admonition:: Changing order_with_respect_to
     180
     181        ``order_with_respect_to`` requires an additional database column,
     182        so be sure to take that into account if you add or change
     183        ``order_with_respect_to`` after your initial ``syncdb``, as you
     184        would any other change to your models.
     185
    179186``ordering``
    180187------------
    181188
Back to Top