human
How to get max value in django ORM
assistant
Here is some code to django get maximum value associated with field 'added' in model `AuthorizedEmail`

AuthorizedEmail.objects.filter(group=group).order_by('-added')[0]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.