Skip to content

Commit

Permalink
feat(models): add Poster label verbose_name
Browse files Browse the repository at this point in the history
Add German `verbose_name` for `Poster` entity field `label`.

Closes: #50
  • Loading branch information
koeaw committed Dec 3, 2024
1 parent 3ab6546 commit 3560927
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by Django 5.1.3 on 2024-12-02 09:41

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("apis_ontology", "0011_alter_event_options_alter_versionevent_options"),
]

operations = [
migrations.AlterField(
model_name="poster",
name="label",
field=models.CharField(
blank=True, default="", max_length=4096, verbose_name="Titel"
),
),
migrations.AlterField(
model_name="versionposter",
name="label",
field=models.CharField(
blank=True, default="", max_length=4096, verbose_name="Titel"
),
),
]
7 changes: 6 additions & 1 deletion apis_ontology/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,12 @@ class Poster(BaseEntity):
viewers/readers/the general public.
"""

label = models.CharField(blank=True, default="", max_length=4096)
label = models.CharField(
blank=True,
default="",
max_length=4096,
verbose_name=_("Titel"),
)

class Meta:
verbose_name = _("Plakat")
Expand Down

0 comments on commit 3560927

Please sign in to comment.