|
|
@ -26,6 +26,13 @@ class Volunteer(models.Model): |
|
|
|
abstract = True |
|
|
|
|
|
|
|
|
|
|
|
class Extern(Volunteer): |
|
|
|
''' abstract basis class for all data entered by extern volunteers ''' |
|
|
|
username = models.CharField(max_length=200, null=True) |
|
|
|
|
|
|
|
class Meta: |
|
|
|
abstract = True |
|
|
|
|
|
|
|
class Project(Volunteer): |
|
|
|
name = models.CharField(max_length=200) |
|
|
|
start = models.DateField('Startdatum', null=True) |
|
|
@ -48,6 +55,8 @@ class Project(Volunteer): |
|
|
|
|
|
|
|
|
|
|
|
class HonoraryCertificate(Volunteer): |
|
|
|
''' this class is also used for accreditations ''' |
|
|
|
|
|
|
|
request_url = models.CharField(max_length=2000) |
|
|
|
project = models.ForeignKey(Project, null = True, on_delete = models.SET_NULL) |
|
|
|
|
|
|
@ -55,8 +64,8 @@ class HonoraryCertificate(Volunteer): |
|
|
|
return "Certificate for " + self.realname |
|
|
|
|
|
|
|
|
|
|
|
#abstract base class for Library, IFG, ... |
|
|
|
class Grant(Volunteer): |
|
|
|
#abstract base class for Library and IFG |
|
|
|
class Grant(Extern): |
|
|
|
cost = models.CharField(max_length=10) |
|
|
|
notes = models.CharField(max_length=500) |
|
|
|
|
|
|
|