old_contents: """Helper utilities that change the django's behaviour."""
  
  from django import newforms as forms
  from django.utils.translation import gettext as _
  
  class WideMixin(object):
      def widget_attrs(self, widget):
          attrs = super(WideMixin, self).widget_attrs(widget)
          if attrs is None: 
              attrs = {}
          attrs['class'] = 'wide-field'
          return attrs
  
  class WideCharField(WideMixin, forms.CharField):
      def clean(self, value):
          if isinstance(value, unicode):
              if self.max_length is not None and len(value.encode('utf8')) > self.max_length:
                  raise forms.ValidationError(_('Ensure this value has at most %d bytes (it has %d).') % (self.max_length, len(value.encode('utf8'))))
          return super(WideCharField, self).clean(value)
  
  class WideURLField(WideMixin, forms.URLField):
      pass
  class WideChoiceField(WideMixin, forms.ChoiceField):
      pass
  class WideEmailField(WideMixin, forms.EmailField):
      pass
  
new_contents: """Helper utilities that change the django's behaviour."""
  
  from django import newforms as forms
  from django.utils.translation import gettext as _
  
  class WideMixin(object):
      def widget_attrs(self, widget):
          attrs = super(WideMixin, self).widget_attrs(widget)
          if attrs is None: 
              attrs = {}
          attrs['class'] = 'wide-field'
          return attrs
  
  class WideCharField(WideMixin, forms.CharField):
      def clean(self, value):
          if isinstance(value, unicode):
              if self.max_length is not None and len(value.encode('utf8')) > self.max_length:
                  raise forms.ValidationError(_('Ensure this value has at most %(maximum)d bytes (it has %(length)d).') % {'maximum':self.max_length,
                      'length': len(value.encode('utf8'))})
          return super(WideCharField, self).clean(value)
  
  class WideURLField(WideMixin, forms.URLField):
      pass
  class WideChoiceField(WideMixin, forms.ChoiceField):
      pass
  class WideEmailField(WideMixin, forms.EmailField):
      pass
  
subject: make a small change for translation