{% comment %} Builds generic "top assets" box. Note that you must pass in object and the object model must have get_top_assets() defined. And you really should slice top_assets down in get_top_assets(). {% endcomment %} {% load typogrify_tags social_tags video_tags %} {% with object.get_top_assets as top_assets %} {% if top_assets or object.geocode %} {% endif %} {% endwith %}