[PATCH 06/15] series: Add a Series model

Damien Lespiau damien.lespiau at intel.com
Tue Oct 20 01:02:14 AEDT 2015


On Mon, Oct 19, 2015 at 12:18:58PM +0100, Damien Lespiau wrote:
> On Sat, Oct 10, 2015 at 12:21:15AM +0100, Finucane, Stephen wrote:
> > > +class Series(models.Model):
> > > +    project = models.ForeignKey(Project)
> > > +    name = models.CharField(max_length=200, null=True, blank=False)
> > > +    submitter = models.ForeignKey(Person, related_name='submitters')
> > > +    reviewer = models.ForeignKey(User, related_name='reviewers',
> > > null=True,
> > > +                                 blank=True)
> > > +    submitted = models.DateTimeField(default=datetime.datetime.now)
> > 
> > Potential edge case: what happens if a series doesn't have a cover
> > letter (and therefore no email to get the "submitted" time from)?
> 
> submitted is the timestamp of the row creation, disregarding if the
> series has a cover letter or not. No email is getting parsed to set that
> field.

Actually this is not true. I forgot I changed that behaviour :/ So
submitted is taken from the mail headers, each email of the series being
inspected and the earliest timestamp taken.

-- 
Damien


More information about the Patchwork mailing list