mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Added tests for QuerySet.update_or_create() with multi-table inheritance.
This commit is contained in:
committed by
Mariusz Felisiak
parent
67c34c1a37
commit
ae3d575ec3
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user