Skip to content

Commit

Permalink
Use lowercase for Person model's verbose_name and verbose_name_plural
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed Jan 21, 2025
1 parent 53f18bc commit 8220975
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions bakerydemo/base/migrations/0023_alter_person_options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 6.0.dev20250116121251 on 2025-01-21 10:29

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("base", "0022_remove_genericsettings_twitter_url_and_more"),
]

operations = [
migrations.AlterModelOptions(
name="person",
options={"verbose_name": "person", "verbose_name_plural": "people"},
),
]
4 changes: 2 additions & 2 deletions bakerydemo/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ def get_preview_context(self, request, mode_name):
return context

class Meta:
verbose_name = "Person"
verbose_name_plural = "People"
verbose_name = "person"
verbose_name_plural = "people"


class FooterText(
Expand Down

0 comments on commit 8220975

Please sign in to comment.