Angular open modal from component

Django form change field type

What I would like to do is to display a single form that lets the user: Enter a document title (from Document model); Select one of their user_defined_code choices from a drop down list (populated by the UserDefinedCode model); Type in a unique_code (stored in the Code model); I'm not sure how to go about displaying the fields for the foreign key relationships in a form.