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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user