diff --git a/input/migrations/0049_auto_20201118_1509.py b/input/migrations/0049_auto_20201118_1509.py new file mode 100644 index 0000000..90bbb51 --- /dev/null +++ b/input/migrations/0049_auto_20201118_1509.py @@ -0,0 +1,28 @@ +# Generated by Django 3.1.1 on 2020-11-18 15:09 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('input', '0048_auto_20201118_1503'), + ] + + operations = [ + migrations.AlterField( + model_name='ifg', + name='notes', + field=models.TextField(blank=True, max_length=500, verbose_name='Anmerkungen'), + ), + migrations.AlterField( + model_name='library', + name='notes', + field=models.TextField(blank=True, max_length=500, verbose_name='Anmerkungen'), + ), + migrations.AlterField( + model_name='literature', + name='notes', + field=models.TextField(blank=True, max_length=500, verbose_name='Anmerkungen'), + ), + ] diff --git a/input/migrations/0050_auto_20201118_1512.py b/input/migrations/0050_auto_20201118_1512.py new file mode 100644 index 0000000..78ccac6 --- /dev/null +++ b/input/migrations/0050_auto_20201118_1512.py @@ -0,0 +1,28 @@ +# Generated by Django 3.1.1 on 2020-11-18 15:12 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('input', '0049_auto_20201118_1509'), + ] + + operations = [ + migrations.AlterField( + model_name='ifg', + name='notes', + field=models.TextField(blank=True, help_text='Bitte gib an wofür Du das Stipendium verwenden willst.', max_length=500, verbose_name='Anmerkungen'), + ), + migrations.AlterField( + model_name='library', + name='notes', + field=models.TextField(blank=True, help_text='Bitte gib an wofür Du das Stipendium verwenden willst.', max_length=500, verbose_name='Anmerkungen'), + ), + migrations.AlterField( + model_name='literature', + name='notes', + field=models.TextField(blank=True, help_text='Bitte gib an wofür Du das Stipendium verwenden willst.', max_length=500, verbose_name='Anmerkungen'), + ), + ] diff --git a/input/models.py b/input/models.py index 5a816d6..b3b19c8 100644 --- a/input/models.py +++ b/input/models.py @@ -123,7 +123,8 @@ class Travel(Intern): class Grant(Extern): cost = models.CharField(max_length=10, verbose_name='Kosten', help_text="Bitte gib die ungefähr zu erwartenden Kosten in Euro an.") - notes = models.CharField(max_length=500, blank=True, verbose_name='Anmerkungen') + notes = models.TextField(max_length=500, blank=True, verbose_name='Anmerkungen', + help_text="Bitte gib an wofür Du das Stipendium verwenden willst.") class Meta: abstract = True diff --git a/input/views.py b/input/views.py index 2633411..be5f303 100644 --- a/input/views.py +++ b/input/views.py @@ -149,6 +149,7 @@ class ExternView(CookieWizardView): elif choice in ('BIB', 'SOFT', 'ELIT'): form = LibraryForm(data) form.fields['library'].label = LABEL_CHOICES[choice] + form.fields['library'].help_text = f"Für welche {LABEL_CHOICES[choice]} gilt das Stipendium?" form.fields['duration'].help_text = HELP_CHOICES[choice] elif choice == 'MAIL': form = EmailForm(data)