title: How to get Substr of values
body: <p>Hi I have the following query in my views.py</p>
  
  <pre><code>m = Request.objects.filter(Q(type__icontains='4'), Q(wt__in =['giga','mega']))
  context['all_items'] = m.values('type1').order_by('type1')
  </code></pre>
  
  <p>Its giving values <code>sasoo, masoo, pisoo, kusoo etc.</code></p>
  
  <p>How can I implement the Django <a href="https://docs.djangoproject.com/en/1.9/ref/models/database-functions/#substr" rel="nofollow"><code>Substr</code></a> in this case so that my html will display values as <code>sa, ma, pi, ku, ..</code></p>