1
0
mirror of https://github.com/django/django.git synced 2025-10-28 16:16:12 +00:00

[3.2.x] Fixed #18549 -- Fixed heading for inlines with a OneToOneField.

Used verbose_name instead of verbose_name_plural.

Backport of 0aff3fd711 from master.
This commit is contained in:
Timothy McCurrach
2021-01-15 14:32:54 +00:00
committed by Mariusz Felisiak
parent 3dc3a952b2
commit a91bf80459
5 changed files with 27 additions and 4 deletions

View File

@@ -44,6 +44,7 @@ class Book(models.Model):
class Author(models.Model):
name = models.CharField(max_length=50)
books = models.ManyToManyField(Book)
person = models.OneToOneField('Person', models.CASCADE, null=True)
class NonAutoPKBook(models.Model):