<s> from django . utils . decorators import method_decorator <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from corehq . apps . custom_data_fields import CustomDataModelMixin <EOL> from corehq . apps . users . decorators import require_can_edit_commcare_users <EOL> from corehq . apps . users . views import BaseUserSettingsView <EOL> CUSTOM_USER_DATA_FIELD_TYPE = '<STR_LIT>' <EOL> class UserFieldsView ( CustomDataModelMixin , BaseUserSettingsView ) : <EOL> urlname = '<STR_LIT>' <EOL> field_type = CUSTOM_USER_DATA_FIELD_TYPE <EOL> entity_string = _ ( "<STR_LIT>" ) <EOL> @ method_decorator ( require_can_edit_commcare_users ) <EOL> def dispatch ( self , request , * args , ** kwargs ) : <EOL> return super ( UserFieldsView , self ) . dispatch ( request , * args , ** kwargs ) </s>
