I have a QuerySet with Books and I would like to add a score field to every Book result.
score
qs = Book.objects.all()
In raw SQL I woul
Raw SQL is not the only way. You can use a Value() expression (see docs here):
Value()
from django.db.models import CharField, Value MyModel.objects.all().annotate(mycolumn=Value('xxx', output_field=CharField()))