|
|
@ -49,21 +49,21 @@ class Grant(Volunteer): |
|
|
|
abstract = True |
|
|
|
|
|
|
|
|
|
|
|
TYPE_CHOICES = [('BIB', 'Bibliotheksstipendium'), |
|
|
|
('ELIT', 'eLiteraturstipendium'), |
|
|
|
('SOFT', 'Softwarestipendium'), |
|
|
|
('VIS', 'Visitenkarten'), |
|
|
|
('LIST', 'Mailingliste'), |
|
|
|
('MAIL', 'E-Mail-Adresse'), |
|
|
|
('IFG', 'Kostenübernahme IFG-Anfrage'), |
|
|
|
('LIT', 'Literaturstipendium'),] |
|
|
|
TYPE_CHOICES = {'BIB': 'Bibliotheksstipendium', |
|
|
|
'ELIT': 'eLiteraturstipendium', |
|
|
|
'SOFT': 'Softwarestipendium', |
|
|
|
'VIS': 'Visitenkarten', |
|
|
|
'LIST': 'Mailingliste', |
|
|
|
'MAIL': 'E-Mail-Adresse', |
|
|
|
'IFG': 'Kostenübernahme IFG-Anfrage', |
|
|
|
'LIT': 'Literaturstipendium',} |
|
|
|
|
|
|
|
# same model is used for Library, ELitStip and Software! |
|
|
|
class Library(Grant): |
|
|
|
|
|
|
|
type = models.CharField( |
|
|
|
max_length=4, |
|
|
|
choices=TYPE_CHOICES, #attention: actually only BIB, ELIT, SOFT should be used here |
|
|
|
choices=TYPE_CHOICES.items(), #attention: actually only BIB, ELIT, SOFT should be used here |
|
|
|
default='LIB', |
|
|
|
) |
|
|
|
library = models.CharField(max_length=200) |
|
|
|