Commit cb2d289a authored by Damien Lespiau's avatar Damien Lespiau
Browse files

series: Don't count 'done' series in the series that need review


Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
parent 8a0d8f50
......@@ -189,7 +189,8 @@ class UserProfile(models.Model):
else:
qs = Series.objects
qs = qs.filter(reviewer=self.user)
qs = qs.filter(Q(reviewer=self.user),
~Q(last_revision__state=RevisionState.DONE))
return qs
def __str__(self):
......
{% extends "base.html" %}
{% load staticfiles %}
{% load person %}
{% block title %}{{ user }}'s todo list{% endblock %}
......@@ -15,6 +16,7 @@ $(function () {
var series = pw.setup_series_list('#serieslist', '/series/', {
project: pw.project.pk,
reviewer: pw.user.pk,
state: 'initial,in progress,incomplete',
});
/* initial load */
series.refresh();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment