title: How can I turn Django Model objects into a dictionary and still have their foreign keys?
body: <p>In my Django app, how can I turn objects from Models into a dictionary that includes the foreign-key references of the Model object? </p>
  
  <p>When I try this:</p>
  
  <pre><code>from django.forms.models import model_to_dict
  model_to_dict(instance, fields=[], exclude=[])
  </code></pre>
  
  <p>The resulting dictionary only has the direct fields. I would like to also get the foreign keys related to the Model object. How can I do this?</p>