Wednesday, August 22, 2018

Re: problems with order by month

I think you miss the column to order

cardio = Alumno.objects.filter ( fechanacimiento __month = now.month).order_by('fechanacimiento')  
    Should be

    cardio = Alumno.objects.filter ( fechanacimiento __month = now.month).order_by('fechanacimiento_day')  

      Sent from my iPhone

      On Aug 21, 2018, at 6:38 PM, Osvaldo Ruso Olea <venkotandil@gmail.com> wrote:

      cardio = Alumno.objects.filter ( fechanacimiento __month = now.month).order_by('fechanacimiento')  

      No comments:

      Post a Comment