Put the tos extra_dynaexclude in presence_with_tos.py where it belongs.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/models/presence.py Sun Feb 08 23:55:44 2009 +0000
+++ b/app/soc/views/models/presence.py Sun Feb 08 23:56:56 2009 +0000
@@ -63,7 +63,7 @@
new_params = {}
new_params['rights'] = rights
- new_params['extra_dynaexclude'] = ['home', 'tos']
+ new_params['extra_dynaexclude'] = ['home']
new_params['home_template'] = 'soc/presence/home.html'
new_params['create_extra_dynafields'] = {
--- a/app/soc/views/models/presence_with_tos.py Sun Feb 08 23:55:44 2009 +0000
+++ b/app/soc/views/models/presence_with_tos.py Sun Feb 08 23:56:56 2009 +0000
@@ -51,6 +51,8 @@
new_params = {}
new_params['logic'] = soc.logic.models.presence_with_tos.logic
+ new_params['extra_dynaexclude'] = ['tos']
+
new_params['edit_extra_dynafields'] = {
'tos_link_id': widgets.ReferenceField(
reference_url='document', filter=['scope_path'],