Rather than the below, you could simply do `return klass.objects.filter(**kwargs).latest('modified')`.