From fda4f4843e1692250a233eecd619687eb69286ce Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Tue, 7 Jan 2020 00:30:53 +0100 Subject: [PATCH] Notification settings for people who edited 0 articles --- src/wiki/plugins/notifications/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wiki/plugins/notifications/forms.py b/src/wiki/plugins/notifications/forms.py index dacba0f1..c34d9a8b 100644 --- a/src/wiki/plugins/notifications/forms.py +++ b/src/wiki/plugins/notifications/forms.py @@ -97,7 +97,8 @@ class BaseSettingsFormSet(BaseModelFormSet): def get_queryset(self): return Settings.objects.filter( user=self.user, - subscription__articlesubscription__article__current_revision__deleted=False, + ).exclude( + subscription__articlesubscription__article__current_revision__deleted=True, ).prefetch_related( 'subscription_set__articlesubscription', ).order_by('is_default').distinct() -- 2.45.2