Browse files

Fixed typo in docs/model-api.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@568 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 25d8441 commit df3564dace7838d517714c6af3ceeeb11266839e @adrianholovaty adrianholovaty committed Aug 26, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/model-api.txt
View
2 docs/model-api.txt
@@ -391,7 +391,7 @@ how you'd represent that::
To create a recursive relationship -- an object that has a many-to-one
relationship with itself -- use ``meta.ForeignKey("self")``.
-The name of a ``ForeignKey`` (``pizza`` in the example above) generally should
+The name of a ``ForeignKey`` (``city`` in the example above) generally should
be the name of the model, singular. Behind the scenes, Django appends "_id" to
the field name to create its database column name. But your code should never
have to deal with the database column name, unless you write custom SQL.

0 comments on commit df3564d

Please sign in to comment.