>>> AuthorizedEmail.objects.filter(group=group).values('added')
[{'added': datetime.datetime(2012, 5, 19, 13, 8, 7)},
{'added': datetime.datetime(2012, 5, 19, 13, 8, 7)},
{'added': datetime.datetime(2012, 5, 19, 13, 7, 23)},
{'added': datetime.datetime(2012, 5, 19, 13, 8, 7)}]
What would be the best way to get the max value here? In python or in the ORM?
From the documentation:
And to fetch the value in the template: