Commit 157f8238 authored by Claude Paroz's avatar Claude Paroz
Browse files

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
parent 5116c51b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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