mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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…
Reference in New Issue
Block a user