2010-01-09 20:03:52 +00:00
|
|
|
"""
|
|
|
|
|
2014-04-21 09:41:30 +00: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-09 20:03:52 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
from django.db import models
|
2011-10-13 18:04:12 +00:00
|
|
|
|
2013-02-26 12:19:18 +00:00
|
|
|
from model_inheritance.models import NamedURL
|
2012-08-12 10:32:08 +00:00
|
|
|
from django.utils.encoding import python_2_unicode_compatible
|
2010-01-09 20:03:52 +00:00
|
|
|
|
2013-11-03 04:36:09 +00:00
|
|
|
|
2012-08-12 10:32:08 +00:00
|
|
|
@python_2_unicode_compatible
|
2010-01-09 20:03:52 +00:00
|
|
|
class Copy(NamedURL):
|
|
|
|
content = models.TextField()
|
|
|
|
|
2012-08-12 10:32:08 +00:00
|
|
|
def __str__(self):
|
2010-01-09 20:03:52 +00:00
|
|
|
return self.content
|