2010-01-09 20:03:52 +00:00
|
|
|
"""
|
|
|
|
XX. Model inheritance
|
|
|
|
|
|
|
|
Model inheritance across apps can result in models with the same name resulting
|
|
|
|
in the need for an %(app_label)s format string. This app specifically tests
|
|
|
|
this feature by redefining the Copy model from model_inheritance/models.py
|
|
|
|
"""
|
|
|
|
|
2011-10-13 18:04:12 +00:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2010-01-09 20:03:52 +00:00
|
|
|
from django.db import models
|
2011-10-13 18:04:12 +00:00
|
|
|
|
|
|
|
from ..model_inheritance.models import NamedURL
|
2010-01-09 20:03:52 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Abstract base classes with related models
|
|
|
|
#
|
|
|
|
class Copy(NamedURL):
|
|
|
|
content = models.TextField()
|
|
|
|
|
|
|
|
def __unicode__(self):
|
|
|
|
return self.content
|