mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
Include model name in metadata
This commit is contained in:
parent
2a4cbd6eb9
commit
a47948ffe0
@ -49,6 +49,8 @@ class InvenTreeMetadata(SimpleMetadata):
|
||||
app_label = self.model._meta.app_label
|
||||
tbl_label = self.model._meta.model_name
|
||||
|
||||
metadata['model'] = tbl_label
|
||||
|
||||
table = f"{app_label}_{tbl_label}"
|
||||
|
||||
actions = metadata.get('actions', None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user