diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2015-02-17 13:11:05 +0000 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-05-04 23:57:51 +1200 |
commit | f042c706dade6fb6c1c492aff5b4a76320fcd035 (patch) | |
tree | 1bdde7e6ee3dcc188d9596c3d178e94e67f63993 /rrs | |
parent | 8def265a0284efaa1dec94fe7571367fae855057 (diff) | |
download | openembedded-core-contrib-f042c706dade6fb6c1c492aff5b4a76320fcd035.tar.gz |
rrs/models.py: RecipeMaintainerHistory if not found return the first record
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Diffstat (limited to 'rrs')
-rw-r--r-- | rrs/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rrs/models.py b/rrs/models.py index 64d798513f..d24bf92f96 100644 --- a/rrs/models.py +++ b/rrs/models.py @@ -155,6 +155,11 @@ class RecipeMaintainerHistory(models.Model): if rmh_qry: return rmh_qry[0] + + rmh_qry = RecipeMaintainerHistory.objects.filter( + ).order_by('date') + if rmh_qry: + return rmh_qry[0] else: return None |