From 45b98d25359181d64f86eb78fd9a0c80817ef1bc Mon Sep 17 00:00:00 2001 From: Alexander Nestorov Date: Thu, 4 Jul 2024 11:09:02 +0200 Subject: [PATCH] fix more pylint warnings --- django_walletpass/admin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/django_walletpass/admin.py b/django_walletpass/admin.py index fff6cd1..9b5e77d 100644 --- a/django_walletpass/admin.py +++ b/django_walletpass/admin.py @@ -33,10 +33,12 @@ class LogAdmin(admin.ModelAdmin): def pass_(self, obj: Log): if obj.pazz_id: + # pylint: disable=protected-access url = reverse( f"admin:{obj.pazz._meta.app_label}_{obj.pazz._meta.model_name}_change", args=[obj.pazz_id], ) + # pylint: enable=protected-access return format_html( "{title}", url=url, @@ -91,10 +93,12 @@ class RegistrationAdmin(admin.ModelAdmin): def pass_(self, obj: Registration): if obj.pazz_id: + # pylint: disable=protected-access url = reverse( f"admin:{obj.pazz._meta.app_label}_{obj.pazz._meta.model_name}_change", args=[obj.pazz_id], ) + # pylint: enable=protected-access return format_html( "{title}", url=url,