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
Source:stackexchange.com
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