diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-08-09 21:08:00 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-08-09 21:08:00 +0000 |
| commit | 4f00611f747b566cb7586f02462e57829424f077 (patch) | |
| tree | 8977304e1ad1a929815c6c0d4696f041c53094df /docs/tutorial02.txt | |
| parent | e79eb09f2169ba9497283ab1a9e31c49e857fa93 (diff) | |
Fixed #211 -- edit_inline_type is deprecated, in favor of edit_inline itself. For example, instead of 'edit_inline=True, edit_inline_type=meta.TABULAR', use 'edit_inline=meta.TABULAR'.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@440 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/tutorial02.txt')
| -rw-r--r-- | docs/tutorial02.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorial02.txt b/docs/tutorial02.txt index b932aea4f0..d084e2b748 100644 --- a/docs/tutorial02.txt +++ b/docs/tutorial02.txt @@ -242,7 +242,7 @@ Poll object. Let's make that happen. Remove the ``admin`` for the Choice model. Then, edit the ``ForeignKey(Poll)`` field like so:: - meta.ForeignKey(Poll, edit_inline=True, num_in_admin=3), + meta.ForeignKey(Poll, edit_inline=meta.STACKED, num_in_admin=3), This tells Django: "Choice objects are edited on the Poll admin page. By default, provide enough fields for 3 Choices." @@ -274,10 +274,10 @@ One small problem, though. It takes a lot of screen space to display all the fields for entering related Choice objects. For that reason, Django offers an alternate way of displaying inline related objects:: - meta.ForeignKey(Poll, edit_inline=True, num_in_admin=3, edit_inline_type=meta.TABULAR), + meta.ForeignKey(Poll, edit_inline=meta.TABULAR, num_in_admin=3), -With that ``edit_inline_type=meta.TABULAR``, the related objects are displayed -in a more compact, table-based format: +With that ``edit_inline=meta.TABULAR`` (instead of ``meta.STACKED``), the +related objects are displayed in a more compact, table-based format: .. image:: http://media.djangoproject.com/img/doc/tutorial/admin12.png :alt: Add poll page now has more compact choices |
