@register.inclusion_tag('downloads/templatetags/os_release_files.html')
def os_release_files(release, os_slug):
 return {'release': release, 'files': release.files_for_os(os_slug)}

@ register . inclusion_tag ( 'downloads/templatetags/os_release_files.html' ) def os_release_files ( release , os_slug ) : return { 'release' : release , 'files' : release . files_for_os ( os_slug ) }
given a relase object and os_slug return the files for that release .