summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Graham <timograham@gmail.com>2011-12-31 15:30:41 +0000
committerTimo Graham <timograham@gmail.com>2011-12-31 15:30:41 +0000
commit7bee6b451afd80f98aa8c720ec2d61177f0674b5 (patch)
tree2eba65544879fdea6af2580ce7c1bdc06a717968
parent580389c588ade9709f54c1494c5af6747011f043 (diff)
downloaddjango-7bee6b451afd80f98aa8c720ec2d61177f0674b5.tar.gz
[1.3.X] Fixed #640 - Documented that changing order_with_respect_to requires 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
-rw-r--r--docs/ref/models/options.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt
index aae90d0b6a..c1beab03ec 100644
--- a/docs/ref/models/options.txt
+++ b/docs/ref/models/options.txt
@@ -166,6 +166,13 @@ Django quotes column and table names behind the scenes.
>>> answer.get_previous_in_order()
<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``
------------