Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agregar buscador al tablero #5

Open
mgaitan opened this issue Nov 1, 2016 · 1 comment
Open

Agregar buscador al tablero #5

mgaitan opened this issue Nov 1, 2016 · 1 comment

Comments

@mgaitan
Copy link
Member

mgaitan commented Nov 1, 2016

La vista tablero en la home lista todos los siniestros y sus victimas asociadas.

Hay que agregar un formulario en la cabecera con un solo campo tipo charfield y nombre "busqueda", que filtre siniestros por apellido de victimas.

ver como ejemplo.
tecnicatura-villa-el-libertador/CentroAsistencialH3#9

En este caso, la consulta a realizar, seria

Siniestro.objects.filter(victimas__apellido__icontains=form.cleaned_data['busqueda'])
@mgaitan
Copy link
Member Author

mgaitan commented Nov 1, 2016

Esta vista es casi igual que la del Centro asistencial, pueden ayudarse entre los dos grupos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant