
      <div class="details_wrap">
          <ul class="chat clearfix">
            {% for msg in messages %}
              {% if msg.message_from|slugify == request.user.id|slugify %}
                <li class="right clearfix pull-right" id='{{ msg|get_obj_id }}'>
                <i class="fa fa-trash-o pull-right delete_msg" aria-hidden="true"></i>
                  <span class="chat-img pull-right">
                    <img src="{{ profile_pic }}" alt="User Avatar" class="img-circle">
                  </