title: Change TimeField and DateField format in views
body: <p>I have a very basic django model:</p>
  
  <pre><code>class Day(models.Model):
      date = models.DateField()
  
  class Topic(models.Model):
      day = models.ForeignKey(Day)
      time = models.TimeField(choices=CHOICE_TIME)
      topic = models.CharField(max_length=255)
  </code></pre>
  
  <p>So if I access the object's day and time I get these results:</p>
  
  <pre><code>&gt;&gt;&gt; topic = Topic.objects.all()[5]
  &gt;&gt;&gt; print topic.day
  2017-03-13
  &gt;&gt;&gt;
  &gt;&gt;&gt;
  &gt;&gt;&gt; print topic.time
  14:00:00
  </code></pre>
  
  <p>I need to use the day in <code>9 April 2017</code> format and time in 12 hours format <code>2 PM</code> inside the views. How can I solve this? All the answers I found was for django templates, but I need it in views.</p>