Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor formatting fixes for [12139]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12146 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 058343c5e82512d32063e24968ba853f51107505 1 parent e0c3cd4
@jezdez jezdez authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 docs/topics/db/models.txt
View
6 docs/topics/db/models.txt
@@ -879,8 +879,9 @@ abstract base class (only), part of the name should contain
- ``'%(app_label)s'`` is replaced by the lower-cased name of the app the child
class is contained within. Each installed application name must be unique
and the model class names within each app must also be unique, therefore the
- resulting name will end up being different. For example, given an app
- ``common/models.py``::
+ resulting name will end up being different.
+
+For example, given an app ``common/models.py``::
class Base(models.Model):
m2m = models.ManyToManyField(OtherModel, related_name="%(app_label)s_%(class)s_related")
@@ -895,6 +896,7 @@ abstract base class (only), part of the name should contain
pass
Along with another app ``rare/models.py``::
+
from common.models import Base
class ChildB(Base):
Please sign in to comment.
Something went wrong with that request. Please try again.