ignore admin rendering fields for coverage

This commit is contained in:
Matthias 2022-03-11 23:32:36 +01:00
parent 9f171faf1c
commit 6a5dc33e20
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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
"""