<s> from django import forms <EOL> from django . utils . translation import ugettext_lazy as _ , ugettext <EOL> from django . contrib . auth . models import User <EOL> from crispy_forms . helper import FormHelper <EOL> from crispy_forms import layout , bootstrap <EOL> from politician . models import Politician , PoliticianTagLink <EOL> from tag . models import Tag <EOL> class TagNewForm ( forms . ModelForm ) : <EOL> class Meta : <EOL> model = Tag <EOL> fields = [ '<STR_LIT>' ] <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> super ( TagNewForm , self ) . __init__ ( * args , ** kwargs ) <EOL> self . helper = FormHelper ( ) <EOL> self . helper . form_action = "<STR_LIT>" <EOL> self . helper . form_method = "<STR_LIT:POST>" <EOL> self . helper . layout = layout . Layout ( <EOL> layout . Field ( "<STR_LIT>" , css_class = "<STR_LIT>" ) , <EOL> bootstrap . FormActions ( <EOL> layout . Submit ( '<STR_LIT>' , _ ( '<STR_LIT>' ) ) , <EOL> ) <EOL> ) </s>
