Add new field for peregrine logging

This commit is contained in:
Joshua Rubingh 2020-05-18 11:01:19 +02:00
parent d1a7590337
commit 16f3afcba8
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,8 @@ class Schedule(MetaDataModel):
report_sent = models.DateTimeField(_('Report is send to user'), blank=True, null=True, help_text=_('The date and time when the report has sended to the user.'))
peregrine_output_log = models.TextField(_('Peregrine logging'), blank=True, help_text=_('Here you can see the logging of the Peregrine job.'))
def __str__(self):
"""str: Returns a readable name for the schedule. Format is [schedule_name] (employee_name)."""
return '{} ({})'.format(self.name, self.employee)