Fix using any model attribute in file name templates