<s> from django import forms <EOL> from django . utils . translation import ugettext_lazy <EOL> from onadata . apps . viewer . models . data_dictionary import DataDictionary <EOL> class QuickConverter ( forms . Form ) : <EOL> xls_file = forms . FileField ( label = ugettext_lazy ( "<STR_LIT>" ) ) <EOL> def publish ( self , user ) : <EOL> if self . is_valid ( ) : <EOL> return DataDictionary . objects . create ( <EOL> user = user , <EOL> xls = self . cleaned_data [ '<STR_LIT>' ] ) </s>
