From 3af6029727e0e408a95b4a2829724966b3324192 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 20 Jan 2012 15:13:45 +0100 Subject: [PATCH] Add help texts refering to the organisation list on forms that take an organisation field For those who don't read the introduction page under my account, per request from Dave. --- pgweb/events/models.py | 2 +- pgweb/news/models.py | 2 +- pgweb/profserv/models.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pgweb/events/models.py b/pgweb/events/models.py index 2f788b4d..d86ba06f 100644 --- a/pgweb/events/models.py +++ b/pgweb/events/models.py @@ -8,7 +8,7 @@ from core.models import Country, Organisation class Event(PgModel, models.Model): approved = models.BooleanField(null=False, blank=False, default=False) - org = models.ForeignKey(Organisation, null=False, blank=False) + org = models.ForeignKey(Organisation, null=False, blank=False, help_text="If no organisations are listed, please check the organisation list and contact the organisation manager or webmaster@postgresql.org if none are listed.") title = models.CharField(max_length=100, null=False, blank=False) city = models.CharField(max_length=50, null=False, blank=False) state = models.CharField(max_length=50, null=False, blank=True) diff --git a/pgweb/news/models.py b/pgweb/news/models.py index b51d5a56..b93c30d9 100644 --- a/pgweb/news/models.py +++ b/pgweb/news/models.py @@ -4,7 +4,7 @@ from pgweb.core.models import Organisation from pgweb.util.bases import PgModel class NewsArticle(PgModel, models.Model): - org = models.ForeignKey(Organisation, null=False, blank=False) + org = models.ForeignKey(Organisation, null=False, blank=False, help_text="If no organisations are listed, please check the organisation list and contact the organisation manager or webmaster@postgresql.org if none are listed.") approved = models.BooleanField(null=False, blank=False, default=False) date = models.DateField(null=False, blank=False, default=date.today) title = models.CharField(max_length=200, null=False, blank=False) diff --git a/pgweb/profserv/models.py b/pgweb/profserv/models.py index feebe29a..e8e96a6e 100644 --- a/pgweb/profserv/models.py +++ b/pgweb/profserv/models.py @@ -7,7 +7,8 @@ from pgweb.util.bases import PgModel class ProfessionalService(PgModel, models.Model): approved = models.BooleanField(null=False, blank=False, default=False) - organisation = models.ForeignKey(Organisation, null=False, blank=False, unique=True) + organisation = models.ForeignKey(Organisation, null=False, blank=False, unique=True, + help_text="If no organisations are listed, please check the organisation list and contact the organisation manager or webmaster@postgresql.org if none are listed.") description = models.TextField(null=False,blank=False) employees = models.CharField(max_length=32, null=True, blank=True) locations = models.CharField(max_length=128, null=True, blank=True) -- 2.39.5