From a47948ffe0bb5cab15d1ffb96d1d46d1b2c690c4 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 2 Jul 2021 21:18:02 +1000 Subject: [PATCH] Include model name in metadata --- InvenTree/InvenTree/metadata.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/InvenTree/InvenTree/metadata.py b/InvenTree/InvenTree/metadata.py index 24e4dab7d7..f1b1c0c040 100644 --- a/InvenTree/InvenTree/metadata.py +++ b/InvenTree/InvenTree/metadata.py @@ -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)