mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-28 20:33:32 +00:00
Include model name in metadata
This commit is contained in:
1 parent
2a4cbd6eb9
commit
a47948ffe0
1 file changed
+2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user