This commit is contained in:
Matthias 2021-11-28 16:52:19 +01:00
parent 90b3f63851
commit 2747d0d609
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

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