app/soc/views/models/sponsor.py
changeset 1875 69d60793092a
parent 1701 58e3b1e2b0c1
equal deleted inserted replaced
1874:35b65c11d6a1 1875:69d60793092a
    21     '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    21     '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    22     '"Lennard de Rijk" <ljvderijk@gmail.com>',
    22     '"Lennard de Rijk" <ljvderijk@gmail.com>',
    23     '"Pawel Solyga" <pawel.solyga@gmail.com>',
    23     '"Pawel Solyga" <pawel.solyga@gmail.com>',
    24   ]
    24   ]
    25 
    25 
       
    26 
       
    27 from django import forms
    26 
    28 
    27 from soc.logic import dicts
    29 from soc.logic import dicts
    28 from soc.logic.models.host import logic as host_logic
    30 from soc.logic.models.host import logic as host_logic
    29 from soc.logic.models.sponsor import logic as sponsor_logic
    31 from soc.logic.models.sponsor import logic as sponsor_logic
    30 from soc.views.helper import access
    32 from soc.views.helper import access
    66 
    68 
    67     new_params['name'] = "Program Owner"
    69     new_params['name'] = "Program Owner"
    68     new_params['module_name'] = "sponsor"
    70     new_params['module_name'] = "sponsor"
    69     new_params['document_prefix'] = "sponsor"
    71     new_params['document_prefix'] = "sponsor"
    70     new_params['sidebar_grouping'] = 'Programs'
    72     new_params['sidebar_grouping'] = 'Programs'
       
    73 
       
    74     new_params['create_dynafields'] = [
       
    75         {'name': 'link_id',
       
    76          'base': forms.fields.CharField,
       
    77          'label': 'Sponsor Link ID',
       
    78          },
       
    79         ]
    71 
    80 
    72     params = dicts.merge(params, new_params)
    81     params = dicts.merge(params, new_params)
    73 
    82 
    74     super(View, self).__init__(params=params)
    83     super(View, self).__init__(params=params)
    75 
    84