So far I have seen only ascending and descending uses for order_by. I want to order_by(Risk) but have the results returned in High, Med, Low order (These are my options in the field), not based on alphabet sorting, the way order_by is done by default.
To explain it a different way...I have a Field in my model called "Risk". Risk only has 3 values across all the records, High,Med,Low. When I run queries on the database I want it to sort the results of the query based on the the field Risk in the order of High,Med,Low, not the random order it is returning the records now.
current code looks like this:
items = ScanData.objects.filter(Q(Owner__icontains="HooliCorp")).order_by(Risk)