title: FK validation within Django
body: <p>Good afternoon,</p>
  
  <p>I have my django server running with a REST api on top to serve my mobile devices. Now, at some point, the mobile device will communicate with Django. </p>
  
  <p>Let's say the device is asking Django to add an object in the database, and within that object, I need to set a FK like this:</p>
  
  <pre><code>objectA = ObjectA.objects.create(title=title,
      category_id = c_id, order = order, equipment_id = e_id,
      info_maintenance = info_m, info_security = info_s,
      info_general = info_g, alphabetical_notation = alphabetical_notation,
      allow_comments = allow_comments,
      added_by_id = user_id,
      last_modified_by_id = user_id)
  </code></pre>
  
  <p>If the e_id and c_id is received from my mobile devices, should I check before calling this creation if they actually still exists in the DB? That is two extra queries... but if they can avoid any problems, I don't mind!</p>
  
  <p>Thanks a lot! </p>