kopia lustrzana https://github.com/wagtail/bakerydemo
Fix verbose name of user-facing models
rodzic
febc32b7d6
commit
f7ab88b40f
|
@ -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",
|
||||
},
|
||||
),
|
||||
]
|
|
@ -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):
|
||||
|
|
|
@ -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",
|
||||
},
|
||||
),
|
||||
]
|
|
@ -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):
|
||||
|
|
Ładowanie…
Reference in New Issue