diff options
| author | Raj Desai <rajdesai024@gmail.com> | 2023-01-04 17:07:37 +0530 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-04 19:32:08 +0100 |
| commit | 420f3230a229ee5602025724774a768838b94fac (patch) | |
| tree | 3a752d9f8b53cd45aaf504b93ef07904b51c8077 /docs/intro/tutorial07.txt | |
| parent | f6d138eeff4c13df67818144e200439fb56cab2c (diff) | |
[4.1.x] Fixed #34232 -- Fixed typo in docs/intro/tutorial07.txt.
Backport of d2310f6473593d28c14b63a72253408b568e100a from main
Diffstat (limited to 'docs/intro/tutorial07.txt')
| -rw-r--r-- | docs/intro/tutorial07.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/intro/tutorial07.txt b/docs/intro/tutorial07.txt index 1ee4b977ff..56d056bd4d 100644 --- a/docs/intro/tutorial07.txt +++ b/docs/intro/tutorial07.txt @@ -106,12 +106,12 @@ database. Django knows that a :class:`~django.db.models.ForeignKey` should be represented in the admin as a ``<select>`` box. In our case, only one question exists at this point. -Also note the "Add Another" link next to "Question." Every object with a -``ForeignKey`` relationship to another gets this for free. When you click "Add -Another", you'll get a popup window with the "Add question" form. If you add a question -in that window and click "Save", Django will save the question to the database and -dynamically add it as the selected choice on the "Add choice" form you're -looking at. +Also note the "Add another question" link next to "Question." Every object with +a ``ForeignKey`` relationship to another gets this for free. When you click +"Add another question", you'll get a popup window with the "Add question" form. +If you add a question in that window and click "Save", Django will save the +question to the database and dynamically add it as the selected choice on the +"Add choice" form you're looking at. But, really, this is an inefficient way of adding ``Choice`` objects to the system. It'd be better if you could add a bunch of Choices directly when you create the @@ -180,7 +180,7 @@ related objects are displayed in a more compact, table-based format: :alt: Add question page now has more compact choices Note that there is an extra "Delete?" column that allows removing rows added -using the "Add Another Choice" button and rows that have already been saved. +using the "Add another Choice" button and rows that have already been saved. Customize the admin change list =============================== |
