# creating dropdown using three fields

**URL:** <https://forum.djangoproject.com/t/creating-dropdown-using-three-fields/6182>\
**Category:** Using Django\
**Created:** [January 18, 2021, 1:19am UTC](https://forum.djangoproject.com/t/creating-dropdown-using-three-fields/6182 "2021-01-18T01:19:42Z")\
**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 18, 2021, 1:39am UTC](https://forum.djangoproject.com/t/creating-dropdown-using-three-fields/6182/2 "2021-01-18T01:39:32Z")

</div>

There’s a difference between a [Model](https://docs.djangoproject.com/en/3.1/topics/db/models/), which is your internal representation of your database, and a [Form](https://docs.djangoproject.com/en/3.1/topics/forms/), which is your internal representation of a (or part of a) page.

What you’re looking to do here has nothing to do with your model. It’s associated with creating a [widget](https://docs.djangoproject.com/en/3.1/ref/forms/widgets/#module-django.forms.widgets) on your page. In this particular case, you’re going to be creating a [select widget](https://docs.djangoproject.com/en/3.1/ref/forms/widgets/#select) for your field on the form, supplying [choices](https://docs.djangoproject.com/en/3.0/ref/forms/fields/#choicefield) that are dynamically created from your database.

This topic has been covered previously on the forum here - see [Populate choice field from model with conditional query Django](https://forum.djangoproject.com/t/populate-choice-field-from-model-with-conditional-query-django/2519)

---

_[View the full topic](https://forum.djangoproject.com/t/creating-dropdown-using-three-fields/6182)._
