mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-08 03:11:22 +00:00
Include model name in metadata
This commit is contained in:
1 parent
c5df91efce
commit
9977b0bf59
1 file changed
+1
@@ -108,5 +108,6 @@ class InvenTreeMetadata(SimpleMetadata):
|
||||
# Mark this field as "related", and point to the URL where we can get the data!
|
||||
field_info['type'] = 'related field'
|
||||
field_info['api_url'] = model.get_api_url()
|
||||
field_info['model'] = model._meta.model_name
|
||||
|
||||
return field_info
|
||||
Reference in new issue
Block a user