Re: filesizeformat in a view

2011-02-10 Thread refreegrata
thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this gr

Re: filesizeformat in a view

2011-02-10 Thread Daniel Roseman
On Thursday, February 10, 2011 3:46:01 PM UTC, refreegrata wrote: > > Hello list, I have a question. I want to assign the size of a file to > a var in the view, but the value must to be formated in a human- > readable file size. This is for a PDF report. In a template I can be > used the filter

filesizeformat in a view

2011-02-10 Thread refreegrata
Hello list, I have a question. I want to assign the size of a file to a var in the view, but the value must to be formated in a human- readable file size. This is for a PDF report. In a template I can be used the filter "filesizeformat", but Are some way to use that filter in a view? Thanks for re