title: Django modelform: is inline adding related model possible?
body: <p>I really hope this is not a duplicate: I couldn't find anything but that could just mean I'm not good at searching :)</p>
  
  <p>I have a Django app, and the staff is already using the admin app for... well, administration purposes.<br>
  I also created a quick data entry page for a specific model, created substantially by dropping a modelform inside the base template, so that I have:</p>
  
  <ul>
  <li>custom fields</li>
  <li>custom widgets</li>
  <li>javascript client-side validation (server-side validation is of course also present)</li>
  <li>and of course my page layout.</li>
  </ul>
  
  <p>...with minimal effort; I know that the admin page can be customized to obtain all this things, but since I have these needs for <em>one</em> operation (insertion) on <em>one</em> model, this was clearly the winning solution.</p>
  
  <p>The problem arises from the fact that this model has two <code>ForeignKey</code>s to other models in the app.<br>
  The modelform render this by default with a <code>select</code> with the related model instances: is it possible to have in my Form/ModelForm the ability to <strong>add</strong> an instance of the related model in the same way that the Django admin does by default? Or should I do over the thing using the Django admin?  </p>
  
  <p>This is intended for use by the editorial staff, and I really can understand them when they say they don't want to make round trips between two pages.</p>