[Answered ]-How do i display inlines with DetailView?

2👍

There’s no such thing as an inline model. There are inline forms, which are forms for a model which has a ForeignKey relationship with a parent model – but you don’t seem to be talking about forms.

In any case, there’s no need to do anything in code. You can refer to the related models directly in the template:

{% for day in object.day_set.all %}
    {{ day.whatever }}
{% endfor %}

Leave a comment