Skip to content

Commit

Permalink
bug fix (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
KlemenSpruk authored Sep 12, 2023
1 parent 6dd6008 commit ed49e63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dynamicforms/mixins/related_field_ajax.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def render_to_table(self, value, row_data):
cr = self.child_relation
if isinstance(value, BaseManager):
value = value.all()
if value is None:
return ""
return ", ".join((cr.display_value(item) for item in value))
# return ', '.join((cr.display_value(item) for item in cr.get_queryset().filter(pk__in=value)))
elif isinstance(self, RelatedField):
Expand Down

0 comments on commit ed49e63

Please sign in to comment.