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

Diversos Cambios #19

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

JazminAzul
Copy link
Contributor

Estos son algunos cambios que faltaban sobre el buscador

{% block body %}


<html>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

esto está MAL. lo probaron en el navegador? como se ve?

adentro del bloque body solo va el contenido es decir, en este caso, el form y todo lo que hemos puesto dentro de la etiqueta <body>. todo lo que está afuera de eso se "hereda" del templeta del cual se extá extendiendo. en este caso 'login.html'

esto estaria generando un bloque html dentro de otro.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ese es un archivo en el que yo iba copiando y pegando codigo para probarlo..lo subi por error..

if form.is_valid():
paciente= Paciente.objects.filter(apellido__icontains=form.cleaned_data['busqueda'])

else:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

este else no debe ir al nivel del is_valid sino al nivel de request.method. sino para el caso de que sea un GET no va a estar definido el form

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

Successfully merging this pull request may close these issues.

2 participants