|
@ -1,13 +1,15 @@ |
|
|
from datetime import date |
|
|
from datetime import date |
|
|
|
|
|
|
|
|
from django.db import models |
|
|
from django.db import models |
|
|
|
|
|
from django.utils.html import format_html |
|
|
|
|
|
|
|
|
from .settings import ACCOUNTS |
|
|
from .settings import ACCOUNTS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Volunteer(models.Model): |
|
|
class Volunteer(models.Model): |
|
|
realname = models.CharField(max_length=200, null=True, verbose_name="Name / Hauptansprechperson") |
|
|
|
|
|
email = models.EmailField(max_length=200, null=True, verbose_name='E-Mail-Adresse') |
|
|
|
|
|
|
|
|
realname = models.CharField(max_length=200, null=True, verbose_name="Realname") |
|
|
|
|
|
email = models.EmailField(max_length=200, null=True, verbose_name='E-Mail-Adresse', |
|
|
|
|
|
help_text='lala hilfehilfe') |
|
|
|
|
|
|
|
|
# the following Fields are not supposed to be edited by users |
|
|
# the following Fields are not supposed to be edited by users |
|
|
granted = models.BooleanField(null=True) |
|
|
granted = models.BooleanField(null=True) |
|
@ -124,14 +126,14 @@ class Grant(Extern): |
|
|
abstract = True |
|
|
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': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/Zugang_zu_Fachliteratur#Bibliotheksstipendium">Bibliotheksstipendium</a>'), |
|
|
|
|
|
'ELIT': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/Zugang_zu_Fachliteratur#eLiteraturstipendium">eLiteraturstipendium</a>'), |
|
|
|
|
|
'SOFT': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/Software-Stipendien">Softwarestipendium</a>'), |
|
|
|
|
|
'VIS': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/E-Mail-Adressen_und_Visitenkarten#Visitenkarten">Visitenkarten</a>'), |
|
|
|
|
|
'LIST': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/E-Mail-Adressen_und_Visitenkarten#Mailinglisten">Mailingliste</a>'), |
|
|
|
|
|
'MAIL': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/E-Mail-Adressen_und_Visitenkarten#E-Mail-Adressen">E-Mail-Adresse</a>'), |
|
|
|
|
|
'IFG': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/Gebührenerstattungen_für_Behördenanfragen">Kostenübernahme IFG-Anfrage</a>'), |
|
|
|
|
|
'LIT': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/Zugang_zu_Fachliteratur#Literaturstipendium">Literaturstipendium</a>'),} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# same model is used for Library, ELitStip and Software! |
|
|
# same model is used for Library, ELitStip and Software! |
|
|