I am getting order_by fields in the form of a list. I want to order_by by multiple fields with django orm. List is like below:
orderbyList = [\'check-in\',\'
Try something like this
modelclassinstance.objects.order_by('check-in', 'check-out', 'location')
You don't need .all() for this
.all()
You can also define ordering in your model class
something like
class Meta: ordering = ['check-in', 'check-out', 'location']