Fixed a typo in docs/model-api.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2008-03-13 20:23:06 +00:00
parent 48d7a6fb30
commit b448b678e8
1 changed files with 4 additions and 4 deletions

View File

@ -788,10 +788,10 @@ Note, however, that this only refers to models in the same models.py file -- you
cannot use a string to reference a model defined in another application or cannot use a string to reference a model defined in another application or
imported from elsewhere. imported from elsewhere.
**New in Django development version:** to refer to models defined in another **New in Django development version:** To refer to models defined in another
application, you must instead explicitially specify the application label. That application, you must instead explicitly specify the application label. For
is, if the ``Manufacturer`` model above is defined in another application called example, if the ``Manufacturer`` model above is defined in another application
``production``, you'd need to use:: called ``production``, you'd need to use::
class Car(models.Model): class Car(models.Model):
manufacturer = models.ForeignKey('production.Manufacturer') manufacturer = models.ForeignKey('production.Manufacturer')