--- a/app/soc/views/models/sponsor.py Sun Mar 15 16:20:24 2009 +0000
+++ b/app/soc/views/models/sponsor.py Sun Mar 15 16:30:26 2009 +0000
@@ -24,6 +24,8 @@
]
+from django import forms
+
from soc.logic import dicts
from soc.logic.models.host import logic as host_logic
from soc.logic.models.sponsor import logic as sponsor_logic
@@ -69,6 +71,13 @@
new_params['document_prefix'] = "sponsor"
new_params['sidebar_grouping'] = 'Programs'
+ new_params['create_dynafields'] = [
+ {'name': 'link_id',
+ 'base': forms.fields.CharField,
+ 'label': 'Sponsor Link ID',
+ },
+ ]
+
params = dicts.merge(params, new_params)
super(View, self).__init__(params=params)