From 36553ef2a99a1df1509cb392d4066acb99baf579 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 8 Jul 2022 12:22:23 -0700 Subject: [PATCH] Suppress protected-access warning on admin dashboard --- bookwyrm/views/admin/dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/views/admin/dashboard.py b/bookwyrm/views/admin/dashboard.py index d4abaebaf..19583bfa1 100644 --- a/bookwyrm/views/admin/dashboard.py +++ b/bookwyrm/views/admin/dashboard.py @@ -43,7 +43,7 @@ class Dashboard(View): ] = f"{settings.EMAIL_SENDER_NAME}@{settings.EMAIL_SENDER_DOMAIN}" site = models.SiteSettings.objects.get() - # other warnings + # pylint: disable=protected-access data["missing_conduct"] = ( not site.code_of_conduct or site.code_of_conduct