From 44dbbc162a7c0f96e0368d99d4ca259c287cdaed Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 15 Jan 2025 13:20:41 +0100 Subject: [PATCH] Add a help text indicating where the "contributions" field is used Per discussion among moderators --- pgweb/contributors/migrations/0001_initial.py | 2 +- pgweb/contributors/models.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pgweb/contributors/migrations/0001_initial.py b/pgweb/contributors/migrations/0001_initial.py index ed7c84f2..c7d1bd17 100644 --- a/pgweb/contributors/migrations/0001_initial.py +++ b/pgweb/contributors/migrations/0001_initial.py @@ -22,7 +22,7 @@ class Migration(migrations.Migration): ('company', models.CharField(max_length=100, null=True, blank=True)), ('companyurl', models.URLField(max_length=100, null=True, verbose_name='Company URL', blank=True)), ('location', models.CharField(max_length=100, null=True, blank=True)), - ('contribution', models.TextField(null=True, blank=True)), + ('contribution', models.TextField(null=True, blank=True, help_text='This description is currently used for major contributors only')), ], options={ 'ordering': ('lastname', 'firstname'), diff --git a/pgweb/contributors/models.py b/pgweb/contributors/models.py index 4e6bf5c0..342cddb2 100644 --- a/pgweb/contributors/models.py +++ b/pgweb/contributors/models.py @@ -26,7 +26,8 @@ class Contributor(models.Model): company = models.CharField(max_length=100, null=True, blank=True) companyurl = models.URLField(max_length=100, null=True, blank=True, verbose_name='Company URL') location = models.CharField(max_length=100, null=True, blank=True) - contribution = models.TextField(null=True, blank=True) + contribution = models.TextField(null=True, blank=True, + help_text='This description is currently used for major contributors only') user = models.ForeignKey(User, null=True, blank=True, on_delete=models.CASCADE) send_notification = True -- 2.39.5