mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
nicer model name
This commit is contained in:
parent
6de0a211f7
commit
6e34119f85
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user