[Toaster] V2: Commit for recipe detail view ready for review
Paul Eggleton
paul.eggleton at linux.intel.com
Tue Jan 28 01:04:36 PST 2014
Hi David,
On Monday 27 January 2014 18:01:08 Reyna, David wrote:
> Belen Barros Pena wrote:
> > ... package size is being displayed in bytes, instead of being converted
> > to KB or MB as appropriate.
> > Any chance we could get that changed?
>
> Yes, I will write a custom filter that we can all use for the visual
> translation.
FYI, you shouldn't need to write a new filter for this - Django has a built-in
filter "filesizeformat" that does this:
https://docs.djangoproject.com/en/1.5/ref/templates/builtins/#filesizeformat
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the toaster
mailing list