@ -17,8 +17,8 @@ class Volunteer(models.Model):
help_text = format_html ( ' Bitte gib deine E-Mail-Adresse ein, damit dich<br>Wikimedia Deutschland bei Rückfragen oder für<br>die Zusage kontaktieren kann. ' ) )
help_text = format_html ( ' Bitte gib deine E-Mail-Adresse ein, damit dich<br>Wikimedia Deutschland bei Rückfragen oder für<br>die Zusage kontaktieren kann. ' ) )
# 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_date = models . DateField ( null = True )
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_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 )
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 ' )
mail_state = models . CharField ( max_length = 6 , choices = EMAIL_STATES . items ( ) , default = ' NONE ' )
@ -61,7 +61,7 @@ class Account(models.Model):
code = models . CharField ( ' Kostenstelle ' , max_length = 5 , default = " DEF " ,
code = models . CharField ( ' Kostenstelle ' , max_length = 5 , default = " DEF " ,
null = False , primary_key = True )
null = False , primary_key = True )
description = models . CharField ( ' Beschreibung ' , max_length = 60 , default = ' NO DESCRIPTION ' )
description = models . CharField ( ' Beschreibung ' , max_length = 60 , default = ' NO DESCRIPTION ' )
intern_notes = models . TextField ( max_length = 1000 , blank = True )
intern_notes = models . TextField ( max_length = 1000 , blank = True , verbose_name = " interne Anmerkungen " )
def __str__ ( self ) :
def __str__ ( self ) :
return f " {self.code} {self.description} "
return f " {self.code} {self.description} "
@ -81,7 +81,7 @@ class Project(Volunteer):
insurance = models . BooleanField ( default = False , verbose_name = ' Haftpflichtversicherung ' )
insurance = models . BooleanField ( default = False , verbose_name = ' Haftpflichtversicherung ' )
insurance_technic = models . BooleanField ( default = False , verbose_name = ' Technikversicherung Ausland ' )
insurance_technic = models . BooleanField ( default = False , verbose_name = ' Technikversicherung Ausland ' )
support = models . CharField ( max_length = 300 , blank = True , null = True , verbose_name = ' Betreuungsperson und Vertretung ' )
support = models . CharField ( max_length = 300 , blank = True , null = True , verbose_name = ' Betreuungsperson und Vertretung ' )
cost = models . IntegerField ( blank = True , null = True )
cost = models . IntegerField ( blank = True , null = True , verbose_name = ' Kosten ' )
account = models . ForeignKey ( ' Account ' , on_delete = models . CASCADE , null = True , to_field = ' code ' , db_constraint = False )
account = models . ForeignKey ( ' Account ' , on_delete = models . CASCADE , null = True , to_field = ' code ' , db_constraint = False )
granted_from = models . CharField ( max_length = 100 , null = True , verbose_name = ' Bewilligt von ' )
granted_from = models . CharField ( max_length = 100 , null = True , verbose_name = ' Bewilligt von ' )
notes = models . TextField ( max_length = 1000 , null = True , blank = True , verbose_name = ' Anmerkungen ' )
notes = models . TextField ( max_length = 1000 , null = True , blank = True , verbose_name = ' Anmerkungen ' )
@ -89,7 +89,7 @@ class Project(Volunteer):
# the following Fields are not supposed to be edited by users
# the following Fields are not supposed to be edited by users
pid = models . CharField ( max_length = 15 , null = True , blank = True )
pid = models . CharField ( max_length = 15 , null = True , blank = True )
end_mail_send = models . BooleanField ( null = True )
end_mail_send = models . BooleanField ( null = True , verbose_name = ' Endmail versenden ' )
status = models . CharField ( max_length = 3 , choices = ( ( ' RUN ' , ' läuft ' ) , ( ' END ' , ' beendet ' ) , ( ' NOT ' , ' nicht stattgefunden ' ) ) , default = ' RUN ' )
status = models . CharField ( max_length = 3 , choices = ( ( ' RUN ' , ' läuft ' ) , ( ' END ' , ' beendet ' ) , ( ' NOT ' , ' nicht stattgefunden ' ) ) , default = ' RUN ' )
persons = models . IntegerField ( default = 1 )
persons = models . IntegerField ( default = 1 )
finance_id = models . CharField ( max_length = 15 , null = True , blank = True )
finance_id = models . CharField ( max_length = 15 , null = True , blank = True )