Changeset 5437
- Timestamp:
- 06/07/07 13:24:27 (1 year ago)
- Files:
-
- django/trunk/docs/db-api.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/db-api.txt
r5431 r5437 134 134 135 135 The ``save()`` method has no return value. 136 137 Updating ``ForeignKey`` fields works exactly the same way; simply assign an 138 object of the right type to the field in question:: 139 140 joe = Author.objects.create(name="Joe") 141 entry.author = joe 142 entry.save() 143 144 Django will complain if you try to assign an object of the wrong type. 136 145 137 146 How Django knows to UPDATE vs. INSERT
