Suppress protected-access warning on admin dashboard

This commit is contained in:
Mouse Reeve 2022-07-08 12:22:23 -07:00
parent ba7ae46c75
commit 36553ef2a9

View file

@ -43,7 +43,7 @@ class Dashboard(View):
] = f"{settings.EMAIL_SENDER_NAME}@{settings.EMAIL_SENDER_DOMAIN}" ] = f"{settings.EMAIL_SENDER_NAME}@{settings.EMAIL_SENDER_DOMAIN}"
site = models.SiteSettings.objects.get() site = models.SiteSettings.objects.get()
# other warnings # pylint: disable=protected-access
data["missing_conduct"] = ( data["missing_conduct"] = (
not site.code_of_conduct not site.code_of_conduct
or site.code_of_conduct or site.code_of_conduct