In my model i have a method like so:
class Content(models.Model):
#...
def get_file(self):
file = open('path/to/file','r')
return File(file)
I am attempting to access this method and the file object in my template like so:
{{ content.get_file.url }}
I am not getting any error but I am also not getting any output. It just returns nothing where there should be a url.
Am I missing something here?