2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 02:25:38 +00:00

nicer model name

This commit is contained in:
Matthias
2021-11-12 02:05:41 +01:00
parent 6de0a211f7
commit 6e34119f85

@ -40,3 +40,9 @@ class PluginConfig(models.Model):
verbose_name=_('Active'),
help_text=_('Is the plugin active'),
)
def __str__(self) -> str:
name = f'{self.name} - {self.key}'
if not self.active:
name += '(not active)'
return name