diff --git a/accounts/templates/profile.html b/accounts/templates/profile.html index fe7c5710c04ca79aefbb5e185eb24af1c00ff05c..985b8efded80cfaba33c07035a366878d7ab46bb 100644 --- a/accounts/templates/profile.html +++ b/accounts/templates/profile.html @@ -17,7 +17,7 @@ <strong>Mon inscription :</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 bc17843460b7d65b6d689cf73aff4836872fdaa2..50d91c3a86c86f7260ef5c4cdb9cf4d4ee4c47d9 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