I am trying to grab the first five characters from a char field but for only one field in a queryset but I keep getting various errors. Is there an effective way to do this in the view?
Code I am trying:
var = Model.objects.values('field1', 'field2'[:5], 'field3')