diff options
-rw-r--r-- | fietsboek/models/track.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fietsboek/models/track.py b/fietsboek/models/track.py index 8025f6a..a78e56a 100644 --- a/fietsboek/models/track.py +++ b/fietsboek/models/track.py @@ -613,7 +613,7 @@ class TrackWithMetadata: :return: The generated HTML. """ people = [self.owner] + list(self.tagged_people) - people.sort(key=lambda p: p.name) + people.sort(key=lambda p: p.name or "") html_list = "".join(Markup("<li>{}</li>").format(person.name) for person in people) return Markup("<ul class="mb-0">{}</ul>").format(html_list) |