Re: problems with order by month

2018-08-21 Thread Osvaldo Ruso Olea
as 10:14, Matthew Pava () escribió: > You can chain the methods. > > cardio = Alumno.objects.filter ( fechanacimiento __month = > now.month).order_by(‘fechanacimiento’) > > > > > > *From:* django-users@googlegroups.com [mailto: > django-users@googlegroups.com] *On B

Re: problems with order by month

2018-08-21 Thread Osvaldo Ruso Olea
chanacimiento__month').order_by('fechanacimiento__day') > > > > *Franklin Sarmiento* > *Full-stack developer* > *skype: franklin.s.dev* > *Twitter: @franklinitiel* > *linkedin: Franklin Sarmiento ( franklinit...@gmail.co

Re: problems with order by month

2018-08-21 Thread Osvaldo Ruso Olea
gt; > cardio = Alumno.objects.filter ( fechanacimiento __month = > now.month).order_by(‘fechanacimiento’) > > > > > > *From:* django-users@googlegroups.com [mailto: > django-users@googlegroups.com] *On Behalf Of *Osvaldo Ruso Olea > *Sent:* Monday, August 20, 2018 9:49 PM > *To

Re: problems with order by month

2018-08-20 Thread Osvaldo Ruso Olea
m:* django-users@googlegroups.com [mailto: > django-users@googlegroups.com] *On Behalf Of *Osvaldo Ruso Olea > *Sent:* Monday, August 20, 2018 2:58 PM > *To:* Django users > *Subject:* problems with order by month > > > > Hi how are you, I have problems filtering and sorting

problems with order by month

2018-08-20 Thread Osvaldo Ruso Olea
Hi how are you, I have problems filtering and sorting by date, precisely per month. my intention is to filter the database for birthdays in the current month. def cardio(request): cardio = Alumno.objects.order_by('fechanacimiento') contexto = {'cardio':cardio} return render(request