From 405144b23bddf3cd1b052908a5ef71c11064ded1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org> Date: Wed, 12 Apr 2023 11:40:49 +0200 Subject: [PATCH] improve help text readability --- .../0044_alter_contract_tender_url.py | 25 +++++++++++++++++++ contracts/models.py | 4 +-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 contracts/migrations/0044_alter_contract_tender_url.py diff --git a/contracts/migrations/0044_alter_contract_tender_url.py b/contracts/migrations/0044_alter_contract_tender_url.py new file mode 100644 index 0000000..a8f8f30 --- /dev/null +++ b/contracts/migrations/0044_alter_contract_tender_url.py @@ -0,0 +1,25 @@ +# Generated by Django 4.1.4 on 2023-04-12 09:40 + +from django.db import migrations + +import contracts.models + + +class Migration(migrations.Migration): + dependencies = [ + ("contracts", "0043_alter_contract_agreement_url_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="contract", + name="tender_url", + field=contracts.models.SubdomainValidatedURLField( + blank=True, + help_text='Běžně odkaz na <a href="https://forum.pirati.cz/viewforum.php?f=572">VŘ sekci</a> fóra. Musí začínat <i>https</i> a být pod doménou <i>pirati.cz</i>.', + max_length=256, + null=True, + verbose_name="Odkaz na výběrové řízení", + ), + ), + ] diff --git a/contracts/models.py b/contracts/models.py index 99ae169..0b44dcd 100644 --- a/contracts/models.py +++ b/contracts/models.py @@ -579,8 +579,8 @@ class Contract(NameStrMixin, models.Model): null=True, verbose_name="Odkaz na výběrové řízení", help_text=mark_safe( - 'Běžně odkaz na <a href="https://forum.pirati.cz/viewforum.php?f=572">fórum</a>. ' - "Musí začínat <i>https</i> a být pod doménou <i>pirati.cz</i>." + 'Běžně odkaz na <a href="https://forum.pirati.cz/viewforum.php?f=572">VŘ sekci</a> ' + "fóra. Musí začínat <i>https</i> a být pod doménou <i>pirati.cz</i>." ), ) -- GitLab