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