One more spot missed when renaming organisation field

This commit is contained in:
Magnus Hagander
2012-06-29 14:13:03 +02:00
parent 05a856e841
commit bfe49e44f0
2 changed files with 2 additions and 1 deletions

View 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', )

View 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)