def asset_path(instance, filename):
    """Determines the path from the author username and the Template shortcode"""
    return '/'.join([instance.template.author.username,
                     instance.template.slug,
                     filename])