From 1337e0894cfe522ff0f0b6d7ea5515117ad93f80 Mon Sep 17 00:00:00 2001 From: mariusrklein <47218379+mariusrklein@users.noreply.github.com> Date: Tue, 25 Feb 2025 13:14:40 +0100 Subject: [PATCH] fixed html tags and link verbose names --- .../startpage/migrations/0004_internal_startpage_links.py | 6 +++++- jdav_web/startpage/models.py | 5 ++++- jdav_web/startpage/templates/startpage/contact.html | 4 +++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/jdav_web/startpage/migrations/0004_internal_startpage_links.py b/jdav_web/startpage/migrations/0004_internal_startpage_links.py index 8258909..ba60d3a 100644 --- a/jdav_web/startpage/migrations/0004_internal_startpage_links.py +++ b/jdav_web/startpage/migrations/0004_internal_startpage_links.py @@ -1,4 +1,4 @@ -# Generated by Django 4.0.1 on 2025-02-25 09:47 +# Generated by Django 4.0.1 on 2025-02-25 12:10 from django.db import migrations, models import utils @@ -21,5 +21,9 @@ class Migration(migrations.Migration): ('url', models.URLField(max_length=250)), ('visible', models.BooleanField(default=True, verbose_name='Sichtbar')), ], + options={ + 'verbose_name': 'Link', + 'verbose_name_plural': 'Links', + }, ), ] diff --git a/jdav_web/startpage/models.py b/jdav_web/startpage/models.py index 070fa00..47cec2c 100644 --- a/jdav_web/startpage/models.py +++ b/jdav_web/startpage/models.py @@ -121,7 +121,10 @@ class Link(models.Model): 'image/gif']) visible = models.BooleanField(verbose_name=_('Sichtbar'), default=True) - + class Meta: + verbose_name = _('Link') + verbose_name_plural = _('Links') + def __str__(self): return self.title \ No newline at end of file diff --git a/jdav_web/startpage/templates/startpage/contact.html b/jdav_web/startpage/templates/startpage/contact.html index ac75a82..096c902 100644 --- a/jdav_web/startpage/templates/startpage/contact.html +++ b/jdav_web/startpage/templates/startpage/contact.html @@ -15,4 +15,6 @@ weiterweißt oder sonst der Schuh drückt, schreibe eine E-Mail an eine der folg