<https://lh3.googleusercontent.com/-y6iDerxsJQM/VkIbpx5j19I/AAAAAAAAAgw/OYdyYTRJgME/s1600/Captura%2Bde%2Bpantalla%2B2015-11-10%2Ba%2Blas%2B10.30.09%2Ba.m..png>

i have the next view but it does not work  

<https://lh3.googleusercontent.com/-4PPNOaFeJOI/VkIa2AhLQbI/AAAAAAAAAgg/0VyNoj7bMvw/s1600/Captura%2Bde%2Bpantalla%2B2015-11-10%2Ba%2Blas%2B10.26.32%2Ba.m..png>

also have the model 


<https://lh3.googleusercontent.com/-qCaTL7AhvTQ/VkIbR0E2jqI/AAAAAAAAAgo/82RRntPAfzM/s1600/Captura%2Bde%2Bpantalla%2B2015-11-10%2Ba%2Blas%2B10.28.43%2Ba.m..png>

<https://lh3.googleusercontent.com/-y6iDerxsJQM/VkIbpx5j19I/AAAAAAAAAgw/OYdyYTRJgME/s1600/Captura%2Bde%2Bpantalla%2B2015-11-10%2Ba%2Blas%2B10.30.09%2Ba.m..png>


the error is the follow



El martes, 10 de noviembre de 2015, 10:14:02 (UTC-6), luk...@riseup.net 
escribió:
>
> Haven't run this code, but you could try something like: 
>
> ``` 
>      import string 
>
>      myletters = string.ascii_letters[:16] 
>      objects = [] 
>      order = 'Nombre' 
>      for letter in myletters: 
>          filters = {'Nombre__startswith': letter} 
>           
> objects.append(Clientes.objects.filter(**filters).order_by(order) 
> ``` 
>
> Hope that helps, 
> Luke 
>
> On 2015-11-10 17:06, miguel angel lopez mendo wrote: 
> > a = Clientes.objects.filter( Nombre__startswith='A').order_by('Nombre') 
> >  b = Clientes.objects.filter( 
> > Nombre__startswith='B').order_by('Nombre') 
> >  c = Clientes.objects.filter( 
> > Nombre__startswith='C').order_by('Nombre') 
> >  d = Clientes.objects.filter( 
> > Nombre__startswith='D').order_by('Nombre') 
> >  e = Clientes.objects.filter( 
> > Nombre__startswith='E').order_by('Nombre') 
> >  f = Clientes.objects.filter( 
> > Nombre__startswith='F').order_by('Nombre') 
> >  g = Clientes.objects.filter( 
> > Nombre__startswith='G').order_by('Nombre') 
> >  h = Clientes.objects.filter( 
> > Nombre__startswith='H').order_by('Nombre') 
> >  i = Clientes.objects.filter( 
> > Nombre__startswith='I').order_by('Nombre') 
> >  j = Clientes.objects.filter( 
> > Nombre__startswith='J').order_by('Nombre') 
> >  k = Clientes.objects.filter( 
> > Nombre__startswith='K').order_by('Nombre') 
> >  l = Clientes.objects.filter( 
> > Nombre__startswith='L').order_by('Nombre') 
> >  m = Clientes.objects.filter( 
> > Nombre__startswith='M').order_by('Nombre') 
> >  n = Clientes.objects.filter( 
> > Nombre__startswith='N').order_by('Nombre') 
> >  o = Clientes.objects.filter( 
> > Nombre__startswith='O').order_by('Nombre') 
> >  p = Clientes.objects.filter( 
> > Nombre__startswith='P').order_by('Nombre') 
>
>

-- 
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/3d5d787d-1813-4912-873e-622b08058129%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to