from django.db.models import Max name = Tested_Data.objects.filter(name__contains=lang).aggregate(name=Max('name')) print(name) print(name['name']) 결과 {'name': './aaa/aa/222'} ./aaa/aa/222