title: best way to pass processed values along with the object to a django template
body: <p>I have a field timestamp in my table,which is of type long I want to dispaly it in the form of Django datetime (well I convert timestamp to datetime format), and some other atributes of the same object ,am using sqlalchemy2.7 and django1.3.</p>
  
  <p>views.py</p>
  
  <pre><code>result = session.query(Member).order_by(desc(Member.timestamp))
     for instance in session.query(Member).order_by(desc(Member.timestamp)):
          time = instance.timestamp/1000     # 1314788935874
          print datetime.fromtimestamp(time) # 2011-08-31 06:08:55
      return render_to_response('Member/MemberData.html',{'result': result},context_instance=RequestContext(request))
  </code></pre>
  
  <p>MemberData.html</p>
  
  <pre><code>{% for instance in result %}
  &lt;li&gt;
  
      {{instance.timestamp}} ::  {{instance.name}} ::  {{instance.age}}
  
  &lt;/li&gt;
  
  {% endfor %}
  </code></pre>
  
  <p>now the outpt like :</p>
  
  <pre><code>1314788935874 :: James :: 21
  1314788935874 :: John  :: 20
  ............................
  ............................
  </code></pre>
  
  <p>I need the output like :</p>
  
  <pre><code>  2011-08-31 08:32:16 :: James ::21
    2011-08-31 06:08:55 :: John :: 20
   ............................
   ............................ 
  </code></pre>
  
  <p>Thats I want to pass the 'time' varible   to template, how can I pass it with minimum effort
  <br/>
  <b>Note:</b> I want to pass converted timestamp and some other attributes of the object with out any change.
  Please suggest some standered ways,Thanks in advance.</p>