1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #18549 -- Fixed heading for inlines with a OneToOneField.

Used verbose_name instead of verbose_name_plural.
This commit is contained in:
Timothy McCurrach
2021-01-15 14:32:54 +00:00
committed by Mariusz Felisiak
parent 13409a0c0d
commit 0aff3fd711
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):