We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
core
from dal import autocomplete class PacienteAutocomplete(autocomplete.Select2QuerySetView): """ Base de autompletado para pacientes. """ def get_queryset(self): if not self.request.user.has_perm('pacientes.view_paciente'): return Paciente.objects.none() qs = Paciente.objects.all() if self.q: qs = qs.filter(Q(numero_documento__icontains=self.q) | Q(nombres__icontains=self.q) | Q(apellidos__icontains=self.q) ) return qs.order_by("apellidos", "nombres")[:5]
Ejemplo Localidad
enredarte/gestion/views.py
Line 26 in 2035654
The text was updated successfully, but these errors were encountered:
No branches or pull requests
core
app con Autocomplete por modeloEjemplo Localidad
enredarte/gestion/views.py
Line 26 in 2035654
The text was updated successfully, but these errors were encountered: