diff options
Diffstat (limited to 'tests/get_or_create/models.py')
| -rw-r--r-- | tests/get_or_create/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/get_or_create/models.py b/tests/get_or_create/models.py index 4b5f081efa..f8f6157348 100644 --- a/tests/get_or_create/models.py +++ b/tests/get_or_create/models.py @@ -50,6 +50,10 @@ class Author(models.Model): name = models.CharField(max_length=100) +class Journalist(Author): + specialty = models.CharField(max_length=100) + + class Book(models.Model): name = models.CharField(max_length=100) authors = models.ManyToManyField(Author, related_name="books") |
