aboutsummaryrefslogtreecommitdiffstats
path: root/rrs/models.py
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2015-01-28 18:10:13 -0600
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:51 +1200
commitb8e16428d87c3664d0229f8f97b47e1b8340cef0 (patch)
tree6ed547d5518de9d124263070cdc363cb68d157df /rrs/models.py
parentac485c0cc4fcdfe9296ec6b1a913fa963c4f53f7 (diff)
downloadopenembedded-core-contrib-b8e16428d87c3664d0229f8f97b47e1b8340cef0.tar.gz
rrs/models.py: fix RecipeMaintainerHistory get_by_end_date.
If not maintainer info is found return None instead of the first one entry in the table, this made reporting more consistency. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Diffstat (limited to 'rrs/models.py')
-rw-r--r--rrs/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rrs/models.py b/rrs/models.py
index 5c9bcc0b19..366bb6b952 100644
--- a/rrs/models.py
+++ b/rrs/models.py
@@ -106,7 +106,7 @@ class RecipeMaintainerHistory(models.Model):
if rmh_qry:
return rmh_qry[0]
else:
- return RecipeMaintainerHistory.objects.filter().order_by('date')[0]
+ return None
def __unicode__(self):
return "%s: %s, %s" % (self.date, self.author.name, self.sha1[:10])