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

Refs #32219 -- Added admin model inline tests for verbose names.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
Siburg
2021-09-08 11:19:35 +02:00
committed by Mariusz Felisiak
parent 4a43335d30
commit 1bd6a7a0ac
2 changed files with 131 additions and 5 deletions

View File

@@ -337,3 +337,19 @@ class Profile(models.Model):
collection = models.ForeignKey(ProfileCollection, models.SET_NULL, blank=True, null=True)
first_name = models.CharField(max_length=100)
last_name = models.CharField(max_length=100)
class VerboseNameProfile(Profile):
class Meta:
verbose_name = 'Model with verbose name only'
class VerboseNamePluralProfile(Profile):
class Meta:
verbose_name_plural = 'Model with verbose name plural only'
class BothVerboseNameProfile(Profile):
class Meta:
verbose_name = 'Model with both - name'
verbose_name_plural = 'Model with both - plural name'