diff --git a/src/core/locale/de/LC_MESSAGES/django.po b/src/core/locale/de/LC_MESSAGES/django.po index 54af1d06f8bdd3847179ecc5f279fc42658d76ca..c61e33aaa95e18a841b493c29b8f5095d3a70738 100644 --- a/src/core/locale/de/LC_MESSAGES/django.po +++ b/src/core/locale/de/LC_MESSAGES/django.po @@ -1170,6 +1170,12 @@ msgstr "Team Mitglied" msgid "Habitat" msgstr "Habitatszuordnung" +msgid "Invitation__name" +msgstr "Einladung" + +msgid "Invitation__name__plural" +msgstr "Einladungen" + msgid "Invitation__comment" msgstr "Kommentar" diff --git a/src/core/locale/en/LC_MESSAGES/django.po b/src/core/locale/en/LC_MESSAGES/django.po index dedbe2fa9ed548ca67ebff12a15ad6213600379f..8046fe5a53d0c0501ddfc713e83f40b43f404925 100644 --- a/src/core/locale/en/LC_MESSAGES/django.po +++ b/src/core/locale/en/LC_MESSAGES/django.po @@ -1170,6 +1170,12 @@ msgstr "Team member" msgid "Habitat" msgstr "Habitat assignment" +msgid "Invitation__name" +msgstr "invitation" + +msgid "Invitation__name__plural" +msgstr "invitations" + msgid "Invitation__comment" msgstr "comment" diff --git a/src/core/migrations/0163_alter_invitation_options.py b/src/core/migrations/0163_alter_invitation_options.py new file mode 100644 index 0000000000000000000000000000000000000000..91948ae4b6a21171aed8416c01c8c3ffa697dc9b --- /dev/null +++ b/src/core/migrations/0163_alter_invitation_options.py @@ -0,0 +1,20 @@ +# Generated by Django 5.1.3 on 2024-11-30 12:58 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("core", "0162_remove_workadventure"), + ] + + operations = [ + migrations.AlterModelOptions( + name="invitation", + options={ + "verbose_name": "Invitation__name", + "verbose_name_plural": "Invitation__name__plural", + }, + ), + ] diff --git a/src/core/models/invitation.py b/src/core/models/invitation.py index 1f5e8925ef63991ceb69325625f776d7f4af6df9..955e1823f1e62da2a702b52dd7da3ae9099134e8 100644 --- a/src/core/models/invitation.py +++ b/src/core/models/invitation.py @@ -95,6 +95,8 @@ class Invitation(models.Model): models.Index(fields=['requester_type', 'requester_id'], name='requester_idx'), models.Index(fields=['requested_type', 'requested_id'], name='requested_idx'), ] + verbose_name = _('Invitation__name') + verbose_name_plural = _('Invitation__name__plural') # Make the enums available through the class InvitationType = InvitationType