<s> from django import forms <EOL> from datetime import datetime <EOL> from patchwords . modles import Story <EOL> class StoryForm ( forms . ModelForm ) : <EOL> title = forms . CharField ( max_length = <NUM_LIT> , help_text = "<STR_LIT>" ) <EOL> author = forms . CharFeild ( widget = forms . HiddenInput ( ) ) <EOL> category = forms . CharField ( choices = [ ( x , x ) for x in self . data [ '<STR_LIT>' ] . name ] ) <EOL> slug = forms . CharField ( widget = forms . HiddenInput ( ) , required = False ) <EOL> dateTime = forms . DateTimeField ( widget = forms . HiddenInput ( ) , ) <EOL> class Meta : <EOL> model = Story <EOL> fields = ( '<STR_LIT:title>' , '<STR_LIT>' ) </s>
