I want to add a static value to the results of a database query using django (so not using \'raw\' SQL)
For example, if I have an object Car with fields make, model, and
This solution uses soon-to-be-deprecated API. See this answer for a better way to solve this.
You can use the extra() method. Like this:
Car.objects.all().extra(select = {'sales': 0})