djangosnippets.org: Latest snippets tagged with 'dateutil'https://djangosnippets.org/tags/dateutil/2007-03-01T11:37:57.153472-06:00Use dateutil's relativedelta to sort an arbitrary list of Django objects by date
2007-03-01T11:37:57.153472-06:00cmcavoyhttps://djangosnippets.org/snippets/65/<p>Sometimes you'll have a list of ORM objects that aren't in a QuerySet, but you still want to sort them by date. For instance, you have a list of shows with a date_time attribute. Maybe you used a list comprehension to filter them...who knows. Regardless, you have a list (not …</p>
Freely redistributable