From 3e6a1cfb1196b5dc0438fdc673592293890db527 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 1 May 2020 11:37:32 +0000 Subject: [PATCH] Limited the data for 'New draft revisions over time' on the personal profile page to type='draft'. - Legacy-Id: 17720 --- ietf/doc/views_stats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ietf/doc/views_stats.py b/ietf/doc/views_stats.py index d384eaf2f..05f9c9cc5 100644 --- a/ietf/doc/views_stats.py +++ b/ietf/doc/views_stats.py @@ -174,7 +174,8 @@ def chart_data_person_drafts(request, id): if not person: data = [] else: - data = model_to_timeline_data(DocEvent, doc__documentauthor__person=person, type='new_revision') + data = model_to_timeline_data(DocEvent, doc__documentauthor__person=person, type='new_revision', doc__type_id='draft') + debug.show('len(data)') return JsonResponse(data, safe=False)