Hi.
Currently, if we want to convent a filesize from bytes to a human-readable size, we have to do:
from django.template.defaultfilters import filesizeformat
print(filesizeformat(size_in_bytes))
How about we move that filter into django.contrib.humanize? Maybe the filter would be a shortcut to the django.contrib.humanize.filesizeformat function? Or vice-versa.
Use case: I am downloading a file in a custom manage.py command, and I want to print it's size to the terminal (through parsing the Content-Length header, which comes in bytes).
Thanks!