From a3e2da738088f9fc0d451bba28143f02a5967e86 Mon Sep 17 00:00:00 2001 From: Bill Fenner Date: Tue, 19 Jun 2007 17:19:19 +0000 Subject: [PATCH] select_related() on IDInternal eliminates most of the relevant rows due to missing data in other tables, so instead, select on InternetDrafts. This is a little confusing, since the two halves of the page have different types of objects. Also add the intended_status, which was also missing in this template. - Legacy-Id: 532 --- ietf/iesg/views.py | 2 +- ietf/templates/iesg/independent_doc.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ietf/iesg/views.py b/ietf/iesg/views.py index 6dfc2178e..3ff507090 100644 --- a/ietf/iesg/views.py +++ b/ietf/iesg/views.py @@ -8,7 +8,7 @@ import datetime date_threshold = datetime.datetime.now().date() - datetime.timedelta(days=185) def inddocs(request): - queryset_list_ind = IDInternal.objects.filter(via_rfc_editor = 1,rfc_flag=0,noproblem=1, dnp=0).select_related().order_by('-internet_drafts.b_approve_date') + queryset_list_ind = InternetDraft.objects.filter(idinternal__via_rfc_editor=1, idinternal__rfc_flag=0, idinternal__noproblem=1, idinternal__dnp=0).order_by('-b_approve_date') queryset_list_ind_dnp = IDInternal.objects.filter(via_rfc_editor = 1,rfc_flag=0,dnp=1).order_by('-dnp_date') return object_list(request, queryset=queryset_list_ind, template_name='iesg/independent_doc.html', allow_empty=True, extra_context={'object_list_dnp':queryset_list_ind_dnp }) diff --git a/ietf/templates/iesg/independent_doc.html b/ietf/templates/iesg/independent_doc.html index 71e6f7954..9b821fb31 100644 --- a/ietf/templates/iesg/independent_doc.html +++ b/ietf/templates/iesg/independent_doc.html @@ -8,12 +8,12 @@ The RFC Editor receives requests to publish non-IETF Working Group documents as

Positive IESG Response

-{% regroup object_list by draft.b_approve_date|date:"F j, Y" as dates %} +{% regroup object_list by b_approve_date|date:"F j, Y" as dates %} {% for date in dates %} Date Sent: {{ date.grouper }} {% endfor %} @@ -26,7 +26,7 @@ The RFC Editor receives requests to publish non-IETF Working Group documents as Date Sent: {{ date.grouper }} {% endfor %}