How to display, from a table, a popup containing all the data related to a click on an object?

Hello ! I have a table that is in a loop and displays data and when I press an object, I would like it to display all the data related to the selected object in a popup.

My table

  <tbody> 
    {% for ad in HubriseOrderNewcommande %}
     <tr class="btnSelect tr-commande contenttableforpopup" id="commandid"> {% comment %} onclick="document.location = '{% url 'myapp:hubrise_accept' %}';" {% endcomment %}
          <td data-label=""><img class="icon-commande" src="{% get_static_prefix %}apc/images/{{ ad.pictureplatform }}"></td>
          <td data-label="N° de commande" >{{ ad.id_order }}</td>
          <td data-label="Type de service">{{ ad.service_type }}</td>
          <td data-label="Prix">{{ ad.amount }}</td>
          <td data-label="Statut"><a style="background-color: {{ ad.statuscolor }}; font-size: 11px; padding-top: 8px; padding-bottom: 8px; padding-left: 30px; padding-right: 30px; border-radius: 3px;">{{ ad.status }}</a></td>
      </tr>
      {% endfor %}
    </tbody> 

When you click on id="commandid" it opens my popup.

And I would like to display other data that are not in the same model but are still linked by a ForeignKey

If anyone can help me, this is an assignment due as soon as possible ^^'.

This looks a lot like a duplicate of https://forum.djangoproject.com/t/how-to-display-in-a-popup-all-the-data-related-to-an-object-in-a-table/16038.

From the https://forum.djangoproject.com/faq:

If you have a question, please post it once and don’t make multiple posts in multiple categories to try and get attention. Sometimes it takes a while for the right person to be able to see your post and reply to it!

If there is some difference or adjustment to the earlier post, go ahead and edit that post or add a comment to provide the additional information or clarification.