Re: django magic: context passed to template

2010-09-08 Thread Ɓukasz Rekucki
On 8 September 2010 22:15, maroxe wrote: > Hi, There is something i don't get in django template system. I have a > FileField in my model called myfile. If i pass an instance of my model > to a template, i can access file.size (this is an example). Form where > this variable 'size' come from?? it'

django magic: context passed to template

2010-09-08 Thread maroxe
Hi, There is something i don't get in django template system. I have a FileField in my model called myfile. If i pass an instance of my model to a template, i can access file.size (this is an example). Form where this variable 'size' come from?? it's not part of the FileField class as far as i know