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
chanacimiento__month').order_by('fechanacimiento__day')
>
>
>
> *Franklin Sarmiento*
> *Full-stack developer*
> *skype: franklin.s.dev*
> *Twitter: @franklinitiel*
> *linkedin: Franklin Sarmiento ( franklinit...@gmail.co
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
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
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
5 matches
Mail list logo