|
@ -39,9 +39,9 @@ class Extern(Volunteer): |
|
|
|
|
|
|
|
|
def save(self,*args,**kwargs): |
|
|
def save(self,*args,**kwargs): |
|
|
# is there a way to call super().save() only once? |
|
|
# is there a way to call super().save() only once? |
|
|
super().save(*args,*kwargs) |
|
|
|
|
|
|
|
|
super().save(*args,**kwargs) |
|
|
self.service_id = type(self).__name__ + str(self.pk) |
|
|
self.service_id = type(self).__name__ + str(self.pk) |
|
|
super().save(*args,*kwargs) |
|
|
|
|
|
|
|
|
super().save(*args,**kwargs) |
|
|
|
|
|
|
|
|
class Meta: |
|
|
class Meta: |
|
|
abstract = True |
|
|
abstract = True |
|
@ -84,7 +84,7 @@ class Project(Volunteer): |
|
|
end_mail_send = models.BooleanField(null=True) |
|
|
end_mail_send = models.BooleanField(null=True) |
|
|
status = models.CharField(max_length=3,choices=(('RUN', 'läuft'),('END','beendet')),default='RUN') |
|
|
status = models.CharField(max_length=3,choices=(('RUN', 'läuft'),('END','beendet')),default='RUN') |
|
|
persons = models.IntegerField(default=1) |
|
|
persons = models.IntegerField(default=1) |
|
|
|
|
|
|
|
|
|
|
|
finance_id = models.CharField(max_length=15, null= True, blank=True) |
|
|
|
|
|
|
|
|
def save(self,*args,**kwargs): |
|
|
def save(self,*args,**kwargs): |
|
|
# is there a way to call super().save() only once? |
|
|
# is there a way to call super().save() only once? |
|
|