RE: How to get as result a list of all the users ordered by birthday (month day), ignoring year

2017-11-21 Thread Matthew Pava
PM To: django-users@googlegroups.com Subject: Re: How to get as result a list of all the users ordered by birthday (month day), ignoring year Hi Roberta, I haven't tested it but assuming you want the ordering to happen within the database you may be able to do it with a combinatio

Re: How to get as result a list of all the users ordered by birthday (month day), ignoring year

2017-11-21 Thread Dan Tagg
Hi Roberta, I haven't tested it but assuming you want the ordering to happen within the database you may be able to do it with a combination of TIMESTAMPDIFF and MOD

Re: How to get as result a list of all the users ordered by birthday (month day), ignoring year

2017-11-21 Thread Roberta Takenaka Granero
Dear Roy I had already seen that link. But I didn't like the solution. Anyway it works, so I am using it for while. Thank you 2017-11-17 11:13 GMT-02:00 Roy Shillingburg : > https://stackoverflow.com/questions/4236226/ordering-a- > django-queryset-by-a-datetimes-month-day > > > > On Friday, Nov

Re: How to get as result a list of all the users ordered by birthday (month day), ignoring year

2017-11-17 Thread Roy Shillingburg
https://stackoverflow.com/questions/4236226/ordering-a-django-queryset-by-a-datetimes-month-day On Friday, November 17, 2017 at 7:19:43 AM UTC-5, Roberta Takenaka Granero wrote: > > In models: > > birthday = models.DateField() > > def birthday_month_day(self): > # returns month and day >