Set the proper filter for the home document
authorSverre Rabbelier <srabbelier@gmail.com>
Fri, 06 Mar 2009 22:30:42 +0000
changeset 1697 ffda5c32283b
parent 1696 7b120f7f9a7a
child 1698 a8da5a620236
Set the proper filter for the home document Patch by: Sverre Rabbelier
app/soc/views/models/presence.py
--- a/app/soc/views/models/presence.py	Fri Mar 06 22:30:12 2009 +0000
+++ b/app/soc/views/models/presence.py	Fri Mar 06 22:30:42 2009 +0000
@@ -75,7 +75,7 @@
 
     new_params['edit_extra_dynaproperties'] = {
         'home_link_id': widgets.ReferenceField(
-            reference_url='document', filter=['scope_path'],
+            reference_url='document', filter=['__scoped__'],
             filter_fields={'prefix': params['document_prefix']},
             required=False, label=ugettext('Home page Document link ID'),
             help_text=soc.models.work.Work.link_id.help_text),