mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-06 09:57:57 +00:00
One more spot missed when renaming organisation field
This commit is contained in:
@ -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', )
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user