Include model name in metadata

This commit is contained in:
Oliver 2021-07-02 21:18:02 +10:00
parent 2a4cbd6eb9
commit a47948ffe0

View File

@ -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)