From af69d6ad225a692fb7f5fe68dbf9141773bf56bb Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 29 Jun 2012 14:14:43 +0200 Subject: [PATCH] Set verbose name on more organisation fields --- pgweb/downloads/models.py | 2 +- pgweb/events/models.py | 2 +- pgweb/news/models.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pgweb/downloads/models.py b/pgweb/downloads/models.py index 4ace231a..b943241b 100644 --- a/pgweb/downloads/models.py +++ b/pgweb/downloads/models.py @@ -78,7 +78,7 @@ class LicenceType(models.Model): class Product(PgModel, models.Model): name = models.CharField(max_length=100, null=False, blank=False, unique=True) approved = models.BooleanField(null=False, default=False) - org = models.ForeignKey(Organisation, db_column="publisher_id", null=False) + org = models.ForeignKey(Organisation, db_column="publisher_id", null=False, verbose_name="Organisation") url = models.URLField(null=False, blank=False) category = models.ForeignKey(Category, null=False) licencetype = models.ForeignKey(LicenceType, null=False, verbose_name="Licence type") diff --git a/pgweb/events/models.py b/pgweb/events/models.py index b6d855b2..1192ab21 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, 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.") + org = models.ForeignKey(Organisation, null=False, blank=False, verbose_name="Organisation", 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 b93c30d9..8fffe1d7 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, 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.") + org = models.ForeignKey(Organisation, null=False, blank=False, verbose_name="Organisation", 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) -- 2.39.5