<s> from django import forms <EOL> from app . forms import ModelForm <EOL> from projects . models import Project , ProjectURL , stage_choices <EOL> class ProjectForm ( ModelForm ) : <EOL> name = forms . CharField ( required = True , label = "<STR_LIT:Name>" ) <EOL> description = forms . CharField ( required = False , label = "<STR_LIT>" , widget = forms . Textarea ) <EOL> class Meta : <EOL> model = Project <EOL> class ProjectURLForm ( ModelForm ) : <EOL> url = forms . CharField ( required = True , label = "<STR_LIT>" ) <EOL> stage = forms . CharField ( <EOL> required = True , label = "<STR_LIT>" , <EOL> widget = forms . Select ( choices = stage_choices ) <EOL> ) <EOL> class Meta : <EOL> model = ProjectURL <EOL> fields = ( "<STR_LIT:url>" , "<STR_LIT>" ) </s>
