From 6a5dc33e209fa07a493f0bb47cd5d345725756b4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 11 Mar 2022 23:32:36 +0100 Subject: [PATCH] ignore admin rendering fields for coverage --- InvenTree/common/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/common/admin.py b/InvenTree/common/admin.py index 3ec0e32da1..91c872a642 100644 --- a/InvenTree/common/admin.py +++ b/InvenTree/common/admin.py @@ -12,7 +12,7 @@ class SettingsAdmin(ImportExportModelAdmin): list_display = ('key', 'value') - def get_readonly_fields(self, request, obj=None): + def get_readonly_fields(self, request, obj=None): # pragma: no cover """ Prevent the 'key' field being edited once the setting is created """ @@ -27,7 +27,7 @@ class UserSettingsAdmin(ImportExportModelAdmin): list_display = ('key', 'value', 'user', ) - def get_readonly_fields(self, request, obj=None): + def get_readonly_fields(self, request, obj=None): # pragma: no cover """ Prevent the 'key' field being edited once the setting is created """