[Python-es] Filtro de tabla en django

Marco Herrarte marco.kuait en gmail.com
Mar Jun 10 04:45:17 CEST 2014


Buenas gente,

En django 1.6 genero la siguiente tabla: 
<table id="table" class="table table-striped table-hover table-condensed"> <thead> <tr> <th>User</th> <th>Company</th> </tr> </thead> <tbody> {% for user in user_list %} <tr> <td><a href="{% url 'user:edit_user' user %}">{{ user }}</a></td> <td>{{ user.userprofile.company }}</td> </tr> {% endfor %} </tbody> </table>
Tengo el requerimiento que debe existir un filtro, por tal he encontrado el siguiente plugin jquery: http://sunnywalker.github.io/jQuery.FilterTable/

Este plugin crea un input sobre la tabla para filtrar los campos el cual me funciona bien si utilizo una tabla ya definida pero si género el html desde django no me apaaqrece el input del filtro

Alguien puede ayudarme indicando mi error o alguna solución?

Muchas gracias 
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://mail.python.org/pipermail/python-es/attachments/20140609/0ce2ba18/attachment.html>


Más información sobre la lista de distribución Python-es