From 058343c5e82512d32063e24968ba853f51107505 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sat, 9 Jan 2010 21:07:32 +0000 Subject: [PATCH] Minor formatting fixes for [12139] git-svn-id: http://code.djangoproject.com/svn/django/trunk@12146 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/topics/db/models.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index 0cca1c7392..1fa5cff80a 100644 --- a/docs/topics/db/models.txt +++ b/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):