code: def render(self, name, value, attrs=None, renderer=None):
          
          if django.VERSION >= (1, 11):
              return super(BetterFileInput, self).render(name, value, attrs)
  
          t = render_to_string(
              template_name=self.template_name,
              context=self.get_context(name, value, attrs),
          )
          return mark_safe(t)
docs: For django 1.10 compatibility