|
|
@ -19,9 +19,9 @@ class Volunteer(models.Model): |
|
|
|
# the following Fields are not supposed to be edited by users |
|
|
|
granted = models.BooleanField(null=True, verbose_name='bewilligt') |
|
|
|
granted_date = models.DateField(null=True, verbose_name='bewilligt am') |
|
|
|
survey_mail_send = models.BooleanField(default=False, verbose_name='Keine Umfragemail schicken') |
|
|
|
survey_mail_date = models.DateField(verbose_name='Umfragemail wurde verschickt am', null=True, blank=True) |
|
|
|
mail_state = models.CharField(max_length=6, choices=EMAIL_STATES.items(), default='NONE') |
|
|
|
survey_mail_send = models.BooleanField(default=False, verbose_name='Keine Umfragemail schicken') |
|
|
|
|
|
|
|
|
|
|
|
@classmethod |
|
|
@ -66,6 +66,7 @@ class Account(models.Model): |
|
|
|
return f"{self.code} {self.description}" |
|
|
|
|
|
|
|
class Project(Volunteer): |
|
|
|
end_mail_send = models.BooleanField(default=False, verbose_name='Keine Projektabschlussmail schicken') |
|
|
|
name = models.CharField(max_length=200, verbose_name='Name des Projekts') |
|
|
|
description = models.CharField(max_length=500, verbose_name="Kurzbeschreibung", null=True) |
|
|
|
start = models.DateField('Startdatum', null=True) |
|
|
@ -87,7 +88,6 @@ class Project(Volunteer): |
|
|
|
notes = models.TextField(max_length=1000,null=True,blank=True,verbose_name='Anmerkungen') |
|
|
|
intern_notes = models.TextField(max_length=1000, blank=True, verbose_name="interne Anmerkungen") |
|
|
|
|
|
|
|
end_mail_send = models.BooleanField(null=True, verbose_name='Endmail versenden') |
|
|
|
|
|
|
|
# the following Fields are not supposed to be edited by users |
|
|
|
pid = models.CharField(max_length=15, null=True, blank=True) |
|
|
|