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:
committed by
Tim Graham
parent
7866968eb3
commit
c31bf8cb54
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user