I tried to access the get_filename function in django template, like {{attach.get_filename}}, but it's not working with this __getitem__.