[Fixed]-Django access child model foreign field in parent model

1👍

in the template you have

{% for child in data.child_set.all.all %}

the second .all might be causing the issue, child_set is a query set and .all should be sufficient.

👤pypypy

Leave a comment