mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 13:35:40 +00:00
nicer model name
This commit is contained in:
@ -40,3 +40,9 @@ class PluginConfig(models.Model):
|
|||||||
verbose_name=_('Active'),
|
verbose_name=_('Active'),
|
||||||
help_text=_('Is the plugin 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
|
||||||
|
Reference in New Issue
Block a user