@ -82,25 +82,37 @@ class Project(Volunteer):
class Intern ( Volunteer ) :
class Intern ( Volunteer ) :
''' abstrat base class for data entry from /intern (except Project) '''
''' abstrat base class for data entry from /intern (except Project) '''
request_url = models . CharField ( max_length = 2000 )
request_url = models . CharField ( max_length = 2000 , verbose_name = ' Antrag (URL) ' )
class Meta :
class Meta :
abstract = True
abstract = True
class HonoraryCertificate ( Intern ) :
class HonoraryCertificate ( Intern ) :
''' this class is also used for accreditations '''
''' this class is also used for accreditations '''
# request_url = models.CharField(max_length=2000)
project = models . ForeignKey ( Project , null = True , blank = True , on_delete = models . SET_NULL )
project = models . ForeignKey ( Project , null = True , blank = True , on_delete = models . SET_NULL )
def __str__ ( self ) :
def __str__ ( self ) :
return " Certificate for " + self . realname
return " Certificate for " + self . realname
TRANSPORT_CHOICES = { ' BAHN ' : ' Bahn ' ,
' NONE ' : ' Keine Fahrtkosten ' ,
' OTHER ' : ' Sonstiges (mit Begründung) ' }
PAYEDBY_CHOICES = { ' WMDE ' : ' WMDE ' ,
' REQU ' : ' Antragstellender Mensch ' }
class Travel ( Intern ) :
class Travel ( Intern ) :
project = models . ForeignKey ( Project , on_delete = models . CASCADE )
project = models . ForeignKey ( Project , on_delete = models . CASCADE )
transport = models . CharField ( max_length = 5 , choices = TRANSPORT_CHOICES . items ( ) , default = ' BAHN ' )
other_transport = models . CharField ( max_length = 200 , null = True , blank = True , verbose_name = ' Sonstige Transportmittel (mit Begründung) ' )
travelcost = models . CharField ( max_length = 10 , default = " 0 " , verbose_name = " Fahrtkosten " )
checkin = models . DateField ( blank = True , null = True , verbose_name = ' Check In ' )
checkout = models . DateField ( blank = True , null = True , verbose_name = ' Check Out ' )
payed_for_hotel_by = models . CharField ( max_length = 4 , choices = PAYEDBY_CHOICES . items ( ) , blank = True , null = True , verbose_name = ' Kostenauslage Hotel durch ' )
payed_for_travel_by = models . CharField ( max_length = 4 , choices = PAYEDBY_CHOICES . items ( ) , blank = True , null = True , verbose_name = ' Kostenauslage Fahrt durch ' )
notes = models . CharField ( max_length = 500 , blank = True )
#abstract base class for Library and IFG
#abstract base class for Library and IFG