Fixed id_abstracts to include drafts assigned directly to areas, not only individual and WG drafts.
- Legacy-Id: 4620
This commit is contained in:
parent
a732ebf8e2
commit
356552dac9
|
@ -105,7 +105,7 @@ class IETFWG(Group):
|
|||
areagroup__area__status=lambda v: ("parent__state", { 1: "active" }[v]),
|
||||
start_date__isnull=lambda v: None if v else ("groupevent__changestategroupevent__state__slug", "active"),
|
||||
),
|
||||
always_filter=dict(type__in=("wg", "individ")))
|
||||
always_filter=dict(type__in=("wg", "individ", "area")))
|
||||
|
||||
def from_object(self, base):
|
||||
for f in base._meta.fields:
|
||||
|
|
|
@ -41,6 +41,8 @@ from ietf.idtracker.models import Acronym, IETFWG, InternetDraft, IDInternal,Per
|
|||
from ietf.idtracker.templatetags.ietf_filters import clean_whitespace
|
||||
import re
|
||||
import sys
|
||||
from datetime import datetime as Datetime
|
||||
import pytz
|
||||
|
||||
def all_id_txt():
|
||||
# we need a distinct to prevent the queries below from multiplying the result
|
||||
|
@ -144,7 +146,7 @@ def id_index_txt():
|
|||
|
||||
def id_abstracts_txt():
|
||||
groups = IETFWG.objects.all()
|
||||
return loader.render_to_string("idindex/id_abstracts.txt", {'groups':groups})
|
||||
return loader.render_to_string("idindex/id_abstracts.txt", {'groups':groups, 'time':Datetime.now(pytz.UTC).strftime("%Y-%m-%d %H:%M:%S %Z")})
|
||||
|
||||
def test_all_id_txt(request):
|
||||
return HttpResponse(all_id_txt(), mimetype='text/plain')
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
This summary sheet provides a short synopsis of each Internet-Draft
|
||||
available within the "internet-drafts" directory at the shadow
|
||||
sites directory. These drafts are listed alphabetically by working
|
||||
group acronym and start date.
|
||||
group acronym and start date. Generated {{date}}
|
||||
{% endblock %}{% block abstract %}
|
||||
|
||||
{{ draft.clean_abstract|indent|indent|safe }}{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue