Fix verbose name of user-facing models

pull/489/head
Sage Abdullah 2024-04-23 10:35:55 +07:00 zatwierdzone przez Thibaud Colas
rodzic febc32b7d6
commit f7ab88b40f
4 zmienionych plików z 60 dodań i 4 usunięć

Wyświetl plik

@ -0,0 +1,19 @@
# Generated by Django 5.1.dev20240316121317 on 2024-04-23 04:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("base", "0019_userapprovaltask"),
]
operations = [
migrations.AlterModelOptions(
name="footertext",
options={
"verbose_name": "footer text",
"verbose_name_plural": "footer text",
},
),
]

Wyświetl plik

@ -206,7 +206,8 @@ class FooterText(
return {"footer_text": self.body}
class Meta(TranslatableMixin.Meta):
verbose_name_plural = "Footer Text"
verbose_name = "footer text"
verbose_name_plural = "footer text"
class StandardPage(Page):

Wyświetl plik

@ -0,0 +1,33 @@
# Generated by Django 5.1.dev20240316121317 on 2024-04-23 03:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("breads", "0006_breadingredient_expire_at_breadingredient_expired_and_more"),
]
operations = [
migrations.AlterModelOptions(
name="breadingredient",
options={
"verbose_name": "bread ingredient",
"verbose_name_plural": "bread ingredients",
},
),
migrations.AlterModelOptions(
name="breadtype",
options={
"verbose_name": "bread type",
"verbose_name_plural": "bread types",
},
),
migrations.AlterModelOptions(
name="country",
options={
"verbose_name": "country of origin",
"verbose_name_plural": "countries of origin",
},
),
]

Wyświetl plik

@ -28,7 +28,8 @@ class Country(models.Model):
return self.title
class Meta:
verbose_name_plural = "Countries of Origin"
verbose_name = "country of origin"
verbose_name_plural = "countries of origin"
class BreadIngredient(DraftStateMixin, RevisionMixin, models.Model):
@ -59,7 +60,8 @@ class BreadIngredient(DraftStateMixin, RevisionMixin, models.Model):
return self.name
class Meta:
verbose_name_plural = "Bread ingredients"
verbose_name = "bread ingredient"
verbose_name_plural = "bread ingredients"
class BreadType(RevisionMixin, models.Model):
@ -91,7 +93,8 @@ class BreadType(RevisionMixin, models.Model):
return self.title
class Meta:
verbose_name_plural = "Bread types"
verbose_name = "bread type"
verbose_name_plural = "bread types"
class BreadPage(Page):