From f63b8b7dd95483b2806dec50677c430b435bd487 Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Thu, 12 Sep 2019 09:07:07 +0200 Subject: [PATCH] Add help text to Submission.proceedings field --- .../migrations/0059_auto_20190912_0906.py | 19 +++++++++++++++++++ submissions/models.py | 6 +++++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 submissions/migrations/0059_auto_20190912_0906.py diff --git a/submissions/migrations/0059_auto_20190912_0906.py b/submissions/migrations/0059_auto_20190912_0906.py new file mode 100644 index 000000000..c6705a739 --- /dev/null +++ b/submissions/migrations/0059_auto_20190912_0906.py @@ -0,0 +1,19 @@ +# Generated by Django 2.1.8 on 2019-09-12 07:06 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('submissions', '0058_auto_20190522_1120'), + ] + + operations = [ + migrations.AlterField( + model_name='submission', + name='proceedings', + field=models.ForeignKey(blank=True, help_text="Don't find the Proceedings you are looking for? Ask the conference organizers to contact our admin at admin@scipost.org to set things up.", null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='submissions', to='proceedings.Proceedings'), + ), + ] diff --git a/submissions/models.py b/submissions/models.py index f36388204..fcfb1e36f 100644 --- a/submissions/models.py +++ b/submissions/models.py @@ -100,7 +100,11 @@ class Submission(models.Model): submitted_to = models.ForeignKey('journals.Journal', on_delete=models.CASCADE) proceedings = models.ForeignKey('proceedings.Proceedings', null=True, blank=True, - on_delete=models.SET_NULL, related_name='submissions') + on_delete=models.SET_NULL, related_name='submissions', + help_text=( + 'Don\'t find the Proceedings you are looking for? ' + 'Ask the conference organizers to contact our admin ' + 'at admin@scipost.org to set things up.')) title = models.CharField(max_length=300) # Authors which have been mapped to contributors: -- GitLab