Skip to content

Commit d6a31b4

Browse files
committed
Provide and use an acronym_lower() method so sorting works as expected.
- Legacy-Id: 540
1 parent fe92270 commit d6a31b4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/proceedings/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ def acronym(self):
2222
if interim:
2323
return "i" + acronym
2424
return acronym
25+
def acronym_lower(self):
26+
return self.acronym().lower()
2527
def acronym_name(self):
2628
try:
2729
interim = self.interim

ietf/templates/meeting/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ <h4>Corrections to submissions cutoff date:{{ cor_cut_off_date|date:"F j, Y" }}
6767
</td>
6868
</tr>
6969
</table>
70-
{% for wg in irtf_list|dictsort:"acronym" %}
70+
{% for wg in irtf_list|dictsort:"acronym_lower" %}
7171
<table cellpadding="0" cellspacing="0" border="2" width="80%">
7272
<tr><a name="wg-{{ wg.acronym }}"></a>
7373
<td align="center" bgcolor="#DDFFDD" width="20%"><b>{{ wg.acronym|upper }}</b><br>

0 commit comments

Comments
 (0)