<s> from __future__ import unicode_literals <EOL> from django import forms <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from . models import Grid , GRID_CONFIG , DJANGOCMS_GRID_CHOICES <EOL> NUM_COLUMNS = [ <EOL> ( i , '<STR_LIT:%s>' % i ) for i in range ( <NUM_LIT:0> , GRID_CONFIG [ '<STR_LIT>' ] ) <EOL> ] <EOL> class GridPluginForm ( forms . ModelForm ) : <EOL> create = forms . ChoiceField ( <EOL> choices = NUM_COLUMNS , label = _ ( '<STR_LIT>' ) , <EOL> help_text = _ ( '<STR_LIT>' ) ) <EOL> create_size = forms . ChoiceField ( <EOL> choices = DJANGOCMS_GRID_CHOICES , label = _ ( '<STR_LIT>' ) , <EOL> help_text = ( '<STR_LIT>' <EOL> '<STR_LIT>' ) ) <EOL> class Meta : <EOL> model = Grid <EOL> exclude = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) </s>
