mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #14896 -- Ensured that _meta.get_all_related_objects(include_hidden=True) also works correctly with model inheritance.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15248 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -35,3 +35,12 @@ class PlayedWith(models.Model):
|
||||
class PlayedWithNote(models.Model):
|
||||
played = models.ForeignKey(PlayedWith)
|
||||
note = models.TextField()
|
||||
|
||||
class Contact(models.Model):
|
||||
label = models.CharField(max_length=100)
|
||||
|
||||
class Email(Contact):
|
||||
email_address = models.EmailField(max_length=100)
|
||||
|
||||
class Researcher(models.Model):
|
||||
contacts = models.ManyToManyField(Contact, related_name="research_contacts")
|
||||
|
||||
Reference in New Issue
Block a user