2010-01-10 04:03:52 +08:00
|
|
|
"""
|
|
|
|
|
2014-04-21 17:41:30 +08:00
|
|
|
Model inheritance across apps can result in models with the same name,
|
|
|
|
requiring an %(app_label)s format string. This app tests this feature by
|
|
|
|
redefining the Copy model from model_inheritance/models.py.
|
2010-01-10 04:03:52 +08:00
|
|
|
"""
|
|
|
|
|
2013-02-26 20:19:18 +08:00
|
|
|
from model_inheritance.models import NamedURL
|
2015-01-28 20:35:27 +08:00
|
|
|
|
|
|
|
from django.db import models
|
2012-08-12 18:32:08 +08:00
|
|
|
from django.utils.encoding import python_2_unicode_compatible
|
2010-01-10 04:03:52 +08:00
|
|
|
|
2013-11-03 12:36:09 +08:00
|
|
|
|
2012-08-12 18:32:08 +08:00
|
|
|
@python_2_unicode_compatible
|
2010-01-10 04:03:52 +08:00
|
|
|
class Copy(NamedURL):
|
|
|
|
content = models.TextField()
|
|
|
|
|
2012-08-12 18:32:08 +08:00
|
|
|
def __str__(self):
|
2010-01-10 04:03:52 +08:00
|
|
|
return self.content
|