Kaydet (Commit) 157f8238 authored tarafından Claude Paroz's avatar Claude Paroz

Fixed #18024 -- Reworded sentence in models documentation. Thanks Preston Holmes for the patch.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@17912 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 5116c51b
......@@ -577,8 +577,8 @@ Thus, it's now possible to have multiple fields of type
Models across files
-------------------
It's perfectly OK to relate a model to one from another app. To do this,
import the related model at the top of the model that holds your model. Then,
It's perfectly OK to relate a model to one from another app. To do this, import
the related model at the top of the file where your model is defined. Then,
just refer to the other model class wherever needed. For example::
from geography.models import ZipCode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment