Skip to content

Commit

Permalink
[1.3.X] Fixed #640 - Documented that changing order_with_respect_to r…
Browse files Browse the repository at this point in the history
…equires a schema change; thanks fcurella and poirier for the draft patches.

Backport of r17316 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@17317 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
timgraham committed Dec 31, 2011
1 parent 580389c commit 7bee6b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/ref/models/options.txt
Expand Up @@ -166,6 +166,13 @@ Django quotes column and table names behind the scenes.
>>> answer.get_previous_in_order() >>> answer.get_previous_in_order()
<Answer: 1> <Answer: 1>


.. admonition:: Changing order_with_respect_to

``order_with_respect_to`` adds an additional field/database column
named ``_order``, so be sure to handle that as you would any other
change to your models if you add or change ``order_with_respect_to``
after your initial :djadmin:`syncdb`.

``ordering`` ``ordering``
------------ ------------


Expand Down

0 comments on commit 7bee6b4

Please sign in to comment.