From 35d40dea783b1e9ec9c7767ae298eb155e186904 Mon Sep 17 00:00:00 2001
From: Dorian Lesbre <dorian.lesbre@gmail.com>
Date: Thu, 18 Mar 2021 13:19:17 +0100
Subject: [PATCH] Small fixes

---
 accounts/templates/profile.html | 2 +-
 home/admin.py                   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/accounts/templates/profile.html b/accounts/templates/profile.html
index fe7c571..985b8ef 100644
--- a/accounts/templates/profile.html
+++ b/accounts/templates/profile.html
@@ -17,7 +17,7 @@
 	<strong>Mon inscription&nbsp;:</strong>
 	<ul>
 		<li>{% if user.profile.sleeps %}Inscrit pour dormir sur place{% else %}Ne dors pas sur place{% endif %}</li>
-		<li>{% if user.profile.mug %}Commande une tasse{% else %}Ne commande pas de tasse{% endif %}</li>
+		<!--<li>{% if user.profile.mug %}Commande une tasse{% else %}Ne commande pas de tasse{% endif %}</li>-->
 		<li>Inscrit à {{ user.profile.nb_meals }} repas.</li>
 		{% if settings.activities_allocated %}
 			{% if my_activities %}
diff --git a/home/admin.py b/home/admin.py
index bc17843..50d91c3 100644
--- a/home/admin.py
+++ b/home/admin.py
@@ -42,7 +42,7 @@ class InterludesParticipantAdmin(ExportCsvMixin, admin.ModelAdmin):
 class ActivityListAdmin(ExportCsvMixin, admin.ModelAdmin):
 	"""option d'affichage des choix d'activités dans la vue django admin"""
 	list_display = ("activity", "participant", "priority", "accepted")
-	list_filter = ("activity", "participant",)
+	list_filter = ("activity", "participant__is_registered", "participant")
 	list_editable = ("accepted",)
 	ordering = ("activity", "priority", "participant",)
 	list_per_page = 200
-- 
GitLab