<s> '''<STR_LIT>''' <EOL> from django import forms <EOL> from expedient . common . utils . validators import resourceVMNameValidator <EOL> from vt_plugin . models . VM import VM <EOL> class VMModelForm ( forms . models . ModelForm ) : <EOL> class Meta : <EOL> fields = [ "<STR_LIT>" , "<STR_LIT:name>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> model = VM <EOL> def clean_name ( self ) : <EOL> resourceVMNameValidator ( self . cleaned_data [ '<STR_LIT:name>' ] ) <EOL> return self . cleaned_data [ '<STR_LIT:name>' ] </s>
