mirror of
https://github.com/django/django.git
synced 2025-02-26 02:04:52 +00:00
Added clarifying note to docs/model-api.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@586 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d74373924d
commit
005e70387c
@ -1010,6 +1010,9 @@ just import the model module at the top of your model module, like so::
|
||||
|
||||
from django.models import core
|
||||
|
||||
Make sure you're importing from ``django.models``, not directly from your model
|
||||
module.
|
||||
|
||||
Then, just refer to the other model class wherever needed. For example::
|
||||
|
||||
class MyModel(meta.Model):
|
||||
|
Loading…
x
Reference in New Issue
Block a user