[Django]-Bootstrap modal not updating modal content

4👍

you can fix it by add model.pk to the modal id

in the button

<button type="button" class="btn btn-primary btn-lg" data-toggle="modal"
     data-target="#myModal{{ item.id }}">
    Bid now! for id {{ item.id }}
</button>

and in the

 <div class="modal fade"
      id="myModal{{ item.id }}"
      tabindex="-1" role="dialog" aria-labelledby="myModalLabel">

other solution is create js function to load new data to each time as you activate the modal.

Leave a comment