Yet another bugfix for days-in-state information

- Legacy-Id: 1668
This commit is contained in:
Pasi Eronen 2009-09-15 19:34:02 +00:00
parent 4973fafada
commit 55030aaf30
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
ietfdb (2.33)
* Yet another bugfix for days-in-state information. From Pasi.
-- Henrik Levkowetz <henrik@levkowetz.com>
ietfdb (2.32)
* Make the 1wg-charters.txt page stable, not changing dependent on the

View file

@ -368,7 +368,8 @@ class IetfProcessData:
return self._idinternal.documentcomment_set.filter(
Q(comment_text__istartswith="Draft Added by ")|
Q(comment_text__istartswith="State Changes to ")|
Q(comment_text__istartswith="Sub state has been changed to ")).order_by('-id')[0].date
Q(comment_text__istartswith="Sub state has been changed to ")|
Q(comment_text__istartswith="State has been changed to ")).order_by('-id')[0].date
except IndexError:
# should never happen -- return an obviously bogus date
return date(1990,1,1)