From 9a965de742e76d6715e42a7fb39fb3d268aa20eb Mon Sep 17 00:00:00 2001 From: Kumi Date: Wed, 17 Feb 2021 05:55:04 +0000 Subject: [PATCH] Fix mindless copy-paste programming --- mood/templates/mood/status_edit.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mood/templates/mood/status_edit.html b/mood/templates/mood/status_edit.html index c53bb80..df6041d 100644 --- a/mood/templates/mood/status_edit.html +++ b/mood/templates/mood/status_edit.html @@ -36,20 +36,19 @@ {% for activitycategory in request.user.activitycategory_set.all %} - {{ activitycategory.name }} +

{{ activitycategory.name }}

- {% for activity in activitycategory.activity_set.all %} + {% for activity in activitycategory.activity_set.all|dictsort:"name" %} {{ activity }}
{% endfor %} {% endfor %} - Uncategorized activities + {% other_activities as activities %} + {% if activities %}

Uncategorized activities

{% endif%} - {% for activitycategory in request.user.activitycategory_set.all %} - {% for activity in activitycategory.activity_set.all %} + {% for activity in activities|dictsort:"name" %} {{ activity }}
{% endfor %} - {% endfor %}