old_contents: from django import template
  register = template.Library()
  
  @register.filter('field_type')
  def field_type(obj):
      return obj.__class__.__name__
  
new_contents: from django import template
  register = template.Library()
  
  
  @register.filter
  def field_type(field):
      """
      Show actual field type of a BoundField
      """
      return field.field.__class__.__name__
  
  
  @register.filter
  def widget_type(field):
      """
      Show widget type of the BoundField
      """
      return field.field.widget.__class__.__name__
  
subject: Improve widget_type filters