1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Refs #20203 -- Added tests to check inherited custom default manager

This commit is contained in:
Andriy Sokolovskiy
2015-06-18 17:13:04 +03:00
committed by Tim Graham
parent 7866968eb3
commit c31bf8cb54
2 changed files with 25 additions and 2 deletions

View File

@@ -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