2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00
This commit is contained in:
Matthias
2021-11-28 16:52:19 +01:00
parent 90b3f63851
commit 2747d0d609

View File

@ -700,7 +700,7 @@ def clean_decimal(number):
def get_objectreference(obj, type_ref: str = 'content_type', object_ref: str = 'object_id'): def get_objectreference(obj, type_ref: str = 'content_type', object_ref: str = 'object_id'):
"""lookup method for the GenericForeignKey fields """lookup method for the GenericForeignKey fields
Attributes: Attributes:
- obj: object that will be resolved - obj: object that will be resolved
- type_ref: field name for the contenttype field in the model - type_ref: field name for the contenttype field in the model