I\'m currently learning Django and some of my models have custom methods to get values formatted in a specific way. Is it possible to use the value of one of these custom me
No, you can't do that. order_by
is applied at the database level, but the database can't know anything about your custom Python methods.
You can either use the separate fields to order:
Author.objects.order_by('first_name', 'last_name')
or do the ordering in Python:
sorted(Author.objects.all(), key=lambda a: a.full_name)