title: Django: Want to display an empty field as blank rather displaying None
body: <p>I have a template called client_details.html that displays <code>user</code>, <code>note</code> and <code>datetime</code>. Now sometimes, a client may not have an entry for user, note and datetime. What my program will do instead is display <code>None</code> if these fields are empty. I do not want the to display None. If a field has no value I don't want to see any value e.g. let it be blank if possible instead of displaying None.</p>
  
  <p><strong>views.py</strong> </p>
  
  <pre><code>@login_required
  def get_client(request, client_id = 0):
      client = None
      try:
          client = models.Client.objects.get(pk = client_id)
      except:
          pass
      return render_to_response('client_details.html', {'client':client}, context_instance = RequestContext(request))
  </code></pre>
  
  <p><strong>template</strong></p>
  
  <pre><code>{{client.datetime}}&lt;br/&gt; 
  {{client.datetime.time}}&lt;br/&gt;  
  {{client.user}}&lt;br/&gt;
  {{client.note}}&lt;br/&gt;
  </code></pre>