widget filter from integer field (which has no serialize method) give an error
Closed this issue · 1 comments
yougis commented
i get an error when I use widget filter from an integer field I get an error during the querying.
It 's caused by this line of code
self.widget.param.value.serialize(self.widget.value)
I propose to change with :
if not hasattr(self.widget.param.value, 'serialize'):
return self.widget.value
else:
return self.widget.param.value.serialize(self.widget.value)
to keep the initial serializing with widget that needs to be serialize and render directly the value in the other way.
I do a PR
github-actions commented
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.