Remove Q debugging code.
Add author to each item. Don't HTML-escape the title; atom titles are plain text. - Legacy-Id: 916
This commit is contained in:
parent
16e1fa7530
commit
2671982d79
|
@ -77,8 +77,6 @@ class Liaisons(Feed):
|
|||
qs = LiaisonDetail.objects.all().order_by("-submitted_date")
|
||||
if obj.has_key('q'):
|
||||
qs = qs.filter(*obj['q'])
|
||||
select, sql, params = qs._get_sql_clause()
|
||||
print "applied Q: %s" % sql
|
||||
if obj.has_key('filter'):
|
||||
qs = qs.filter(**obj['filter'])
|
||||
if obj.has_key('limit'):
|
||||
|
@ -87,3 +85,6 @@ class Liaisons(Feed):
|
|||
|
||||
def item_pubdate(self, item):
|
||||
return item.submitted_date
|
||||
|
||||
def item_author_name(self, item):
|
||||
return item.from_body()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{# Copyright The IETF Trust 2007, All Rights Reserved #}
|
||||
{% if obj.by_secretariat %}
|
||||
Liaison statement submitted by email from {{ obj.from_body|escape }} to {{ obj.submitter_name|escape }} on {{ obj.submitted_date }}
|
||||
Liaison statement submitted by email from {{ obj.from_body }} to {{ obj.submitter_name }} on {{ obj.submitted_date }}
|
||||
{% else %}
|
||||
{{ obj.title|escape }}
|
||||
{{ obj.title }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue