adding new entries now that the user can add new topicthey'll want to add new entries too we'll again define urlwrite view function and templateand link to the page but first we'll add another class to forms py the entry modelform we need to create form associated with the entry modelbut this time with little more customization than topicformforms py from django import forms from models import topicentry class topicform(forms modelform)--snip-class entryform(forms modelform)class metamodel entry fields ['text' labels {'text''' widgets {'text'forms textarea(attrs={'cols' })we first update the import statement to include entry as well as topic the new class entryform inherits from forms modelform and has nested meta class listing the model it' based on and the field to include in the form we again give the field 'texta blank label at we include the widgets attribute widget is an html form elementsuch as single-line text boxmulti-line text areaor drop-down list by including the widgets attribute you can override django' default widget choices by telling django to use forms textarea elementwe're customizing the input widget for the field 'textso the text area will be columns wide instead of the default this will give users enough room to write meaningful entry