# Multiple Models to one Form

**URL:** <https://forum.djangoproject.com/t/multiple-models-to-one-form/18498>\
**Category:** Forms & APIs\
**Created:** [January 28, 2023, 11:09pm UTC](https://forum.djangoproject.com/t/multiple-models-to-one-form/18498 "2023-01-28T23:09:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [January 28, 2023, 11:41pm UTC](https://forum.djangoproject.com/t/multiple-models-to-one-form/18498/2 "2023-01-28T23:41:35Z")

</div>

Side note: It’s a whole lot easier if you copy/paste the code related to those models into the body of your post. When doing so, enclose the code (or template) between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code (or template), then another line of ```. This forces the forum software to keep your code properly formatted.

This is a topic that has been discussed here in the forum in multiple locations. Some threads you may wish to read include:

- [Multiple form in one page with Foreign Key](https://forum.djangoproject.com/t/multiple-form-in-one-page-with-foreign-key/11239)

- [Saving multiple optional objects with a CreateView - #11 by KenWhitesell](https://forum.djangoproject.com/t/saving-multiple-optional-objects-with-a-createview/11387/11)

- [How to handle forms that don't map easily to a single model](https://forum.djangoproject.com/t/how-to-handle-forms-that-dont-map-easily-to-a-single-model/14812)

- [Adding Extra Fields to a Register Form](https://forum.djangoproject.com/t/adding-extra-fields-to-a-register-form/14922)

- [Create multiple objects in one form Django](https://forum.djangoproject.com/t/create-multiple-objects-in-one-form-django/17397)

(There are probably more - these are just ones that I remember as potentially being the most useful.)

A key point to remember is that you can render multiple forms in the same template. You can then do whatever processing is necessary when saving those forms.

You may also want to review the docs and examples at [the save method](https://docs.djangoproject.com/en/4.1/topics/forms/modelforms/#the-save-method).

---

_[View the full topic](https://forum.djangoproject.com/t/multiple-models-to-one-form/18498)._
