-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: master
Are you sure you want to change the base?
Diversos Cambios #19
Conversation
{% block body %} | ||
|
||
|
||
<html> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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
Estos son algunos cambios que faltaban sobre el buscador