[Fixed]-Query not responding to order_by

1👍

use

.order_by('-first_name')

instead of

.order_by('-first_name'.desc())

- stands for descending already. otherwise you are trying to call a method on a string instead of QuerySet object

Leave a comment