# HG changeset patch # User Sverre Rabbelier # Date 1239229310 0 # Node ID bd93e34108b8d8ee8dfdf80577e83cedfba32c91 # Parent 7f77e0be852ed3d46358f985a5638f8c538055ff Add auto-completion for mentor field Patch by: Kai Blin diff -r 7f77e0be852e -r bd93e34108b8 app/soc/views/models/student_proposal.py --- a/app/soc/views/models/student_proposal.py Wed Apr 08 22:21:30 2009 +0000 +++ b/app/soc/views/models/student_proposal.py Wed Apr 08 22:21:50 2009 +0000 @@ -243,7 +243,10 @@ 'passthrough': ['min_value', 'required', 'help_text'], }, {'name': 'mentor', - 'base': forms.CharField, + 'base': widgets.ReferenceField, + 'passthrough': ['reference_url', 'required', 'label', 'filter'], + 'reference_url': 'mentor', + 'filter': ['__org__'], 'label': 'Assign Mentor (Link ID)', 'required': False, 'help_text': 'Fill in the Link ID of the Mentor '