[UPDT] HORILLA VIEWS: get_item condition update

This commit is contained in:
Horilla
2024-11-05 15:57:01 +05:30
parent 2e01d65406
commit 61a9959ea6
7 changed files with 791 additions and 11 deletions

View File

@@ -327,9 +327,9 @@ class Reverse:
return str(self.reverse)
def getmodelattribute(value, attr: str):
def getmodelattribute(value: models.Model, attr: str):
"""
Gets an attribute of a model dynamically from a string name, handling related fields.
Gets an attribute of a model dynamically, handling related fields.
"""
result = value
attrs = attr.split("__")