I'm trying to get the maximun & minimum value of a model with this query:
max_min_price = MyModel.objects.annotate(Min('price', Max('price')))
But I get the error:
Complex annotations require an alias
I'm not sure what an alias means here and the docs are not clear in my opinion. Any advice will help.