Spam: check for spam rules after user is banned
When we manually use the "Ban project owner" Django admin action, we trigger the
task to check for spam rules immediately.
@@ -291,6 +291,9 @@ class ProjectAdmin(ExtraSimpleHistoryAdmin):
'Banned {} user(s)'.format(total),
)
+ # Trigger the spam rules check for these projects
+ self.run_spam_rule_checks(request, queryset)
+
ban_owner.short_description = 'Ban project owner'
def delete_selected_and_artifacts(self, request, queryset):
