From 05d1f9703e7f419889853570cb69ca9211528dc2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 4 May 2022 17:42:45 +0200 Subject: [PATCH] Add nice repr for NotificationUserSetting --- InvenTree/plugin/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/plugin/models.py b/InvenTree/plugin/models.py index f80a4ced85..0624693abc 100644 --- a/InvenTree/plugin/models.py +++ b/InvenTree/plugin/models.py @@ -183,3 +183,6 @@ class NotificationUserSetting(common.models.GenericReferencedSettingClass, commo verbose_name=_('User'), help_text=_('User'), ) + + def __str__(self) -> str: + return f'{self.key} (for {self.user}): {self.value}'