Skip to content

Commit

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

Closes: #51
  • Loading branch information
koeaw committed Dec 3, 2024
1 parent 3560927 commit 8cbdf7b
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-03 13:07

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("apis_ontology", "0012_alter_poster_label_alter_versionposter_label"),
]

operations = [
migrations.AlterField(
model_name="event",
name="label",
field=models.CharField(
blank=True, default="", max_length=4096, verbose_name="Titel"
),
),
migrations.AlterField(
model_name="versionevent",
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 @@ -210,7 +210,12 @@ class Event(BaseEntity):
https://cidoc-crm.org/html/cidoc_crm_v7.1.3.html#E5
"""

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 = _("Veranstaltung")
Expand Down

0 comments on commit 8cbdf7b

Please sign in to comment.