Skip to content

Commit

Permalink
Update verbose_name_public properties (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood authored Jun 17, 2024
1 parent 98a3bcb commit 9713343
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 15 deletions.
6 changes: 3 additions & 3 deletions etna/api/tests/expected_results/article.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
"title": "arts",
"url": "/arts/",
"full_url": "http://localhost/arts/",
"type_label": "Explore by topic",
"type_label": "Topic",
"teaser_text": "Teaser text",
"teaser_image": {
"id": 2,
Expand All @@ -344,7 +344,7 @@
"title": "early_modern",
"url": "/early_modern/",
"full_url": "http://localhost/early_modern/",
"type_label": "Explore by time period",
"type_label": "Time period",
"teaser_text": "Teaser text",
"teaser_image": {
"id": 4,
Expand All @@ -368,7 +368,7 @@
"title": "postwar",
"url": "/postwar/",
"full_url": "http://localhost/postwar/",
"type_label": "Explore by time period",
"type_label": "Time period",
"teaser_text": "Teaser text",
"teaser_image": {
"id": 6,
Expand Down
2 changes: 1 addition & 1 deletion etna/api/tests/expected_results/arts.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}
},
"alert": null,
"type_label": "Explore by topic",
"type_label": "Topic",
"teaser_text": "Teaser text",
"teaser_image": {
"id": 2,
Expand Down
2 changes: 1 addition & 1 deletion etna/api/tests/expected_results/early_modern.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}
},
"alert": null,
"type_label": "Explore by time period",
"type_label": "Time period",
"teaser_text": "Teaser text",
"teaser_image": {
"id": 4,
Expand Down
4 changes: 2 additions & 2 deletions etna/api/tests/expected_results/focused_article.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"title": "arts",
"url": "/arts/",
"full_url": "http://localhost/arts/",
"type_label": "Explore by topic",
"type_label": "Topic",
"teaser_text": "Teaser text",
"teaser_image": {
"id": 2,
Expand All @@ -162,7 +162,7 @@
"title": "early_modern",
"url": "/early_modern/",
"full_url": "http://localhost/early_modern/",
"type_label": "Explore by time period",
"type_label": "Time period",
"teaser_text": "Teaser text",
"teaser_image": {
"id": 4,
Expand Down
4 changes: 2 additions & 2 deletions etna/api/tests/expected_results/highlight_gallery.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"title": "arts",
"url": "/arts/",
"full_url": "http://localhost/arts/",
"type_label": "Explore by topic",
"type_label": "Topic",
"teaser_text": "Teaser text",
"teaser_image": {
"id": 2,
Expand All @@ -176,7 +176,7 @@
"title": "early_modern",
"url": "/early_modern/",
"full_url": "http://localhost/early_modern/",
"type_label": "Explore by time period",
"type_label": "Time period",
"teaser_text": "Teaser text",
"teaser_image": {
"id": 4,
Expand Down
6 changes: 3 additions & 3 deletions etna/api/tests/expected_results/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"title": "arts",
"url": "/arts/",
"full_url": "http://localhost/arts/",
"type_label": "Explore by topic",
"type_label": "Topic",
"teaser_text": "Teaser text",
"teaser_image": {
"id": 2,
Expand Down Expand Up @@ -66,7 +66,7 @@
"title": "early_modern",
"url": "/early_modern/",
"full_url": "http://localhost/early_modern/",
"type_label": "Explore by time period",
"type_label": "Time period",
"teaser_text": "Teaser text",
"teaser_image": {
"id": 4,
Expand All @@ -90,7 +90,7 @@
"title": "postwar",
"url": "/postwar/",
"full_url": "http://localhost/postwar/",
"type_label": "Explore by time period",
"type_label": "Time period",
"teaser_text": "Teaser text",
"teaser_image": {
"id": 6,
Expand Down
2 changes: 1 addition & 1 deletion etna/api/tests/expected_results/postwar.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}
},
"alert": null,
"type_label": "Explore by time period",
"type_label": "Time period",
"teaser_text": "Teaser text",
"teaser_image": {
"id": 6,
Expand Down
1 change: 1 addition & 0 deletions etna/authors/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class AuthorPage(BasePage):
class Meta:
verbose_name = "Author page"
verbose_name_plural = "Author pages"
verbose_name_public = "author"

# DataLayerMixin overrides
gtm_content_group = "Author page"
Expand Down
4 changes: 2 additions & 2 deletions etna/collections/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class TopicExplorerPage(RequiredHeroImageMixin, AlertMixin, BasePageWithIntro):
class Meta:
verbose_name = _("topic page")
verbose_name_plural = _("topic pages")
verbose_name_public = _("explore by topic")
verbose_name_public = _("topic")

featured_article = models.ForeignKey(
"wagtailcore.Page",
Expand Down Expand Up @@ -486,7 +486,7 @@ class TimePeriodExplorerPage(RequiredHeroImageMixin, AlertMixin, BasePageWithInt
class Meta:
verbose_name = _("time period page")
verbose_name_plural = _("time period pages")
verbose_name_public = _("explore by time period")
verbose_name_public = _("time period")

featured_article = models.ForeignKey(
"wagtailcore.Page",
Expand Down
1 change: 1 addition & 0 deletions etna/whatson/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class EventType(models.Model):
class Meta:
verbose_name = _("event type")
verbose_name_plural = _("event types")
verbose_name_public = _("event")

def __str__(self):
return self.name
Expand Down

0 comments on commit 9713343

Please sign in to comment.