title: Django - serialize to JSON, how to serialize a FK User object
body: <p>I'm on a page which sends a request to server side for a list of comments of current topic.</p>
  
  <p>like this</p>
  
  <p>localhost:8000/getComments/567  , while 567 is the topic id.</p>
  
  <p>then, in my django view, like this:</p>
  
  <pre><code>def getProjectComments(request, pId):
      format = 'json'
      mimetype = 'application/javascript'  #'application/xml' for 'xml' format
      comments = PrjComment.objects.filter(prj=pId)
      data = serializers.serialize(format, comments)
      return HttpResponse(data,mimetype)
  </code></pre>
  
  <p>Now , the question is ,
  when I try to use jQuery.parseJSON(data) at the browser side.</p>
  
  <pre><code>[
   {
     "pk": 10, 
      "model": "app.prjcomment", 
      "fields": 
       {
        "status": 1, 
        "time_Commented": "2011-12-11 17:23:56", 
        "prj": 1, 
        "content": "my comment 1", 
        "user": 25
       }
    }, 
    {
     "pk": 9, 
     "model": "app.prjcomment", 
     "fields": {
       "status": 1, 
       "time_Commented": "2011-12-11 17:23:51", 
       "prj": 1, 
       "content": "comment \u4e00\u4e2a", 
       "user": 33
     }
   } ..
  </code></pre>
  
  <p>I need to use some detail information of user object.  (user is a Foreign Key in model PrjComment)
  such as user.first_name  to display on the comment list.</p>
  
  <p>but here it is only an id for user.("user": 33)
  How can I do that?  Anyone who can kind help?
  Thank you very much</p>
  
  <p>the User is the Django auth_user.</p>