One more spot missed when renaming organisation field
authorMagnus Hagander <magnus@hagander.net>
Fri, 29 Jun 2012 12:13:03 +0000 (14:13 +0200)
committerMagnus Hagander <magnus@hagander.net>
Fri, 29 Jun 2012 12:13:03 +0000 (14:13 +0200)
pgweb/profserv/forms.py
pgweb/profserv/models.py

index ee3b0c44834f1fffc23b05869755637ef13a72b0..e5cc20f4095fd209a17cc8af7a502fe87e6bf299 100644 (file)
@@ -9,7 +9,7 @@ If you have not done so, use <a href="/account/organisations/new/">this form</a>
        def __init__(self, *args, **kwargs):
                super(ProfessionalServiceForm, self).__init__(*args, **kwargs)
        def filter_by_user(self, user):
-               self.fields['organisation'].queryset = Organisation.objects.filter(managers=user, approved=True)
+               self.fields['org'].queryset = Organisation.objects.filter(managers=user, approved=True)
        class Meta:
                model = ProfessionalService
                exclude = ('submitter', 'approved', )
index b155320bca98b3a9aa001e7ebc54bcbea1a90423..9946925e78361b2b1cbd8d1bab48eb56f0f09e9d 100644 (file)
@@ -9,6 +9,7 @@ class ProfessionalService(PgModel, models.Model):
 
        org = models.ForeignKey(Organisation, null=False, blank=False, unique=True,
                                                        db_column="organisation_id",
+                                                       verbose_name="organisation",
                                                        help_text="If no organisations are listed, please check the <a href=\"/account/orglist/\">organisation list</a> 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)