@register.filter
def thumbnailer(obj, relative_name=None):
 return get_thumbnailer(obj, relative_name=relative_name)

@ register . filter def thumbnailer ( obj , relative_name = None ) : return get_thumbnailer ( obj , relative_name = relative_name )
creates a thumbnailer from an object .