~sielibre/schooltool.isli/2.10_packaging

« back to all changes in this revision

Viewing changes to src/schooltool/isli/demographics.py

  • Committer: Douglas Cerna
  • Date: 2016-03-18 16:41:33 UTC
  • mfrom: (19.1.30 2.10)
  • Revision ID: douglascerna@yahoo.com-20160318164133-iuwm9q393t9l7wyw
New release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
 
86
86
    if 'caste' not in dfs:
87
87
        dfs['caste'] = EnumFieldDescription(
88
 
            'caste', _('EWS / Freeship'),
 
88
            'caste', _('Caste'),
89
89
            limit_keys=['students'])
90
90
        dfs['caste'].items = [
 
91
            _('General'),
 
92
            _('ST'),
 
93
            _('SC'),
 
94
            _('OBC'),
 
95
        ]
 
96
 
 
97
    if 'economic_weakness' not in dfs:
 
98
        dfs['economic_weakness'] = EnumFieldDescription(
 
99
            'economic_weakness', _('EWS / Freeship'),
 
100
            limit_keys=['students'])
 
101
        dfs['economic_weakness'].items = [
91
102
            _('ST'),
92
103
            _('SC'),
93
104
            _('OBC'),
94
105
            _('CWSN'),
95
106
            _('Orphan'),
96
107
            _('Transgender'),
 
108
            _('EWS'),
97
109
        ]
98
110
 
99
111
    if 'blood_group' not in dfs:
142
154
            'father_name', _('Father name'),
143
155
            limit_keys=['students'])
144
156
 
145
 
    if 'economic_weakness' not in dfs:
146
 
        dfs['economic_weakness'] = TextFieldDescription(
147
 
            'economic_weakness', _('Economic weakness'),
148
 
            limit_keys=['students'])
149
 
 
150
157
    # teacher fields
151
158
    if 'shift_type' not in dfs:
152
159
        dfs['shift_type'] = EnumFieldDescription(