[UPDT] HORILLA VIEWS: Generic solution to add addtional data along with dynamic create fields and fix group by action column width to default width
This commit is contained in:
@@ -30,7 +30,6 @@ from django.utils.html import format_html
|
||||
from django.utils.safestring import SafeString
|
||||
from django.utils.translation import gettext_lazy as _trans
|
||||
|
||||
from base.methods import eval_validate
|
||||
from horilla import settings
|
||||
from horilla.horilla_middlewares import _thread_locals
|
||||
from horilla_views.templatetags.generic_template_filters import getattribute
|
||||
@@ -473,6 +472,8 @@ def value_to_field(field: object, value: list) -> Any:
|
||||
"""
|
||||
return value according to the format of the field
|
||||
"""
|
||||
from base.methods import eval_validate
|
||||
|
||||
if isinstance(field, models.ManyToManyField):
|
||||
return [int(val) for val in value]
|
||||
elif isinstance(
|
||||
|
||||
Reference in New Issue
Block a user