mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-28 09:40:43 +00:00
Include model name in metadata
This commit is contained in:
@ -49,6 +49,8 @@ class InvenTreeMetadata(SimpleMetadata):
|
|||||||
app_label = self.model._meta.app_label
|
app_label = self.model._meta.app_label
|
||||||
tbl_label = self.model._meta.model_name
|
tbl_label = self.model._meta.model_name
|
||||||
|
|
||||||
|
metadata['model'] = tbl_label
|
||||||
|
|
||||||
table = f"{app_label}_{tbl_label}"
|
table = f"{app_label}_{tbl_label}"
|
||||||
|
|
||||||
actions = metadata.get('actions', None)
|
actions = metadata.get('actions', None)
|
||||||
|
Reference in New Issue
Block a user