|
@ -27,7 +27,7 @@ class Volunteer(models.Model): |
|
|
|
|
|
|
|
|
class Extern(Volunteer): |
|
|
class Extern(Volunteer): |
|
|
''' abstract basis class for all data entered by extern volunteers ''' |
|
|
''' abstract basis class for all data entered by extern volunteers ''' |
|
|
username = models.CharField(max_length=200, null=True) |
|
|
|
|
|
|
|
|
username = models.CharField(max_length=200, null=True, verbose_name='Benutzer_innenname') |
|
|
|
|
|
|
|
|
# the following Fields are not supposed to be edited by users |
|
|
# the following Fields are not supposed to be edited by users |
|
|
service_id = models.CharField(max_length=15, null=True, blank=True) |
|
|
service_id = models.CharField(max_length=15, null=True, blank=True) |
|
@ -117,8 +117,8 @@ class Travel(Intern): |
|
|
|
|
|
|
|
|
#abstract base class for Library and IFG |
|
|
#abstract base class for Library and IFG |
|
|
class Grant(Extern): |
|
|
class Grant(Extern): |
|
|
cost = models.CharField(max_length=10) |
|
|
|
|
|
notes = models.CharField(max_length=500, blank=True) |
|
|
|
|
|
|
|
|
cost = models.CharField(max_length=10, verbose_name='Kosten') |
|
|
|
|
|
notes = models.CharField(max_length=500, blank=True, verbose_name='Anmerkungen') |
|
|
|
|
|
|
|
|
class Meta: |
|
|
class Meta: |
|
|
abstract = True |
|
|
abstract = True |
|
@ -143,14 +143,14 @@ class Library(Grant): |
|
|
default='LIB', |
|
|
default='LIB', |
|
|
) |
|
|
) |
|
|
library = models.CharField(max_length=200) |
|
|
library = models.CharField(max_length=200) |
|
|
duration = models.CharField(max_length=100) |
|
|
|
|
|
|
|
|
duration = models.CharField(max_length=100, verbose_name="Dauer") |
|
|
|
|
|
|
|
|
def __str__(self): |
|
|
def __str__(self): |
|
|
return self.library |
|
|
return self.library |
|
|
|
|
|
|
|
|
class Literature(Grant): |
|
|
class Literature(Grant): |
|
|
info = models.CharField(max_length=500) |
|
|
|
|
|
source = models.CharField(max_length=200) |
|
|
|
|
|
|
|
|
info = models.CharField(max_length=500, verbose_name='Informationen zum Werk') |
|
|
|
|
|
source = models.CharField(max_length=200, verbose_name='Bezugsquelle') |
|
|
|
|
|
|
|
|
class IFG(Grant): |
|
|
class IFG(Grant): |
|
|
url = models.CharField(max_length=2000) |
|
|
url = models.CharField(max_length=2000) |
|
|