Skip to content

Commit

Permalink
series: Don't count 'done' series in the series that need review
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
  • Loading branch information
Damien Lespiau committed Mar 18, 2016
1 parent 8a0d8f5 commit cb2d289
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion patchwork/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ def todo_series(self, project=None):
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):
Expand Down
2 changes: 2 additions & 0 deletions patchwork/templates/patchwork/todo-list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends "base.html" %}

{% load staticfiles %}
{% load person %}

{% block title %}{{ user }}'s todo list{% endblock %}
Expand All @@ -15,6 +16,7 @@
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();
Expand Down

0 comments on commit cb2d289

Please sign in to comment.