Use a default trackname for unallocated talks
authorDaniel Gustafsson <daniel@yesql.se>
Mon, 27 Aug 2018 08:27:02 +0000 (10:27 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Mon, 27 Aug 2018 08:28:56 +0000 (10:28 +0200)
In the sessionlist, when a talk hasn't been allocated a track it
shows up as "None" as the Python None object is translated to a
string. Override None tracks with 'General' instead to make the
sessionlist less confusing before it's complete.

template.jinja/confreg/sessionlist.html

index 701b692e2a1694a32079879698af0ead576f120e..31c215ac04f224d0e3e1755068ba9c47c01fe2bd 100644 (file)
@@ -11,7 +11,7 @@ You can find the full conference information at the
 </p>
 
 {%for track,sessionlist in sessions|groupby_sort('track', 'sortkey')%}
-<h2>{{track}}</h2>
+<h2>{{track|default_if_none:'General'}}</h2>
 <ul>
 {%for session in sessionlist %}
  <li><a href="session/{{session.id}}-{{session.title|slugify}}/">{{session.title}}</a> ({{session.speaker_list}})</li>