summaryrefslogtreecommitdiff
path: root/tests/custom_managers/models.py
diff options
context:
space:
mode:
authorAndriy Sokolovskiy <me@asokolovskiy.com>2015-06-18 17:13:04 +0300
committerTim Graham <timograham@gmail.com>2015-06-29 21:17:51 -0400
commitc31bf8cb54e591e244abc951896ef5e4a089f38d (patch)
tree67322ba7ab477b514beca8fc49c3305f0ea58e8a /tests/custom_managers/models.py
parent7866968eb3a4cca57ded043053c4568257599279 (diff)
Refs #20203 -- Added tests to check inherited custom default manager
Diffstat (limited to 'tests/custom_managers/models.py')
-rw-r--r--tests/custom_managers/models.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/custom_managers/models.py b/tests/custom_managers/models.py
index 0444d40f58..318059a037 100644
--- a/tests/custom_managers/models.py
+++ b/tests/custom_managers/models.py
@@ -194,3 +194,15 @@ class OneToOneRestrictedModel(models.Model):
def __str__(self):
return self.name
+
+
+class AbstractPerson(models.Model):
+ abstract_persons = models.Manager()
+ objects = models.CharField(max_length=30)
+
+ class Meta:
+ abstract = True
+
+
+class PersonFromAbstract(AbstractPerson):
+ pass