summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/collective/contact/widget/schema.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/collective/contact/widget/schema.py b/src/collective/contact/widget/schema.py
index d712f73..1c8425d 100644
--- a/src/collective/contact/widget/schema.py
+++ b/src/collective/contact/widget/schema.py
@@ -20,7 +20,7 @@ class ContactChoice(RelationChoice):
def __init__(self, *args, **kwargs):
self.addlink = kwargs.pop('addlink', True)
+ portal_types = kwargs.pop('portal_types', ('organization', 'person', 'held_position'))
if not ('values' in kwargs or 'vocabulary' in kwargs or 'source' in kwargs):
- kwargs['source'] = ContactSourceBinder(
- portal_type=('organization', 'person', 'held_position'))
+ kwargs['source'] = ContactSourceBinder(portal_type=portal_types)
super(ContactChoice, self).__init__(*args, **kwargs)