Skip to content

Commit

Permalink
Add verbose name to Country model
Browse files Browse the repository at this point in the history
- Supports testing for edge case issues such as #10982 & listing labels
  • Loading branch information
lb- committed Feb 7, 2024
1 parent 549400c commit 427b57c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions bakerydemo/breads/migrations/0007_alter_country_options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 4.2.7 on 2024-02-07 22:10

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("breads", "0006_breadingredient_expire_at_breadingredient_expired_and_more"),
]

operations = [
migrations.AlterModelOptions(
name="country",
options={
"verbose_name": "Country of Origin",
"verbose_name_plural": "Countries of Origin",
},
),
]
1 change: 1 addition & 0 deletions bakerydemo/breads/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def __str__(self):
return self.title

class Meta:
verbose_name = "Country of Origin"
verbose_name_plural = "Countries of Origin"


Expand Down

0 comments on commit 427b57c

Please sign in to comment.