[Answered ]-Django: Display attributes of Person model

2👍

you need to go one step further to access data from related tables user.person. Here is the docs

<tr>
    <td align="center">Age:</td>
    <td align="center">{{ user.person.age }}</td>
</tr>
<tr>
    <td align="center">City:</td>
    <td align="center">{{ user.person.city }}</td>
</tr>
<tr>
    <td align="center">State:</td>
    <td align="center">{{ user.person.state }}</td>
</tr>

Leave a comment