Soy nuevo en este tema y no me queda lo deje como lo subiste El lunes, 9 de noviembre de 2015, 11:36:29 (UTC-6), miguel angel lopez mendo escribió: > > > def clientes(request): > clientes = Clientes.objects.order_by('Nombre') > clientes2 = Clientes.objects.order_by('Nombre').filter(medio='1') > clientes3 = Clientes.objects.order_by('Nombre').filter(medio='2') > clientes4 = Clientes.objects.order_by('Nombre').filter(medio='3') > c = Clientes.objects.filter( Nombre__startswith='a').order_by('Nombre') > template = 'products/Clientes.html' > return render(request, template, locals()) > > tengo el siguiente problema quiero filtrar por la letra del abecedario y > lo realizo con > > c = Clientes.objects.filter( Nombre__startswith='a').order_by('Nombre') > > pero tengo uno para cada letra nose si me puedan ayudar con alguna funcion > que me facilite obtener esto >
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/97f689d9-d2a0-4c7b-884e-3ddc3742d90b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.