Matias Surdi escribió:
> Hi.
>
> Which is the correct way to zero-pad an integer in templates? is there
> any filter?
>
> Thanks a lot.
>
>
> >
>
Found it: variable|stringformat:"04i"
--~--~-~--~~~---~--~~
You received this message because you are subscri
Hi,
On Thu, 2008-04-24 at 09:13 +0200, Matias Surdi wrote:
> Hi.
>
> Which is the correct way to zero-pad an integer in templates? is there
> any filter?
>
Yes:
http://www.djangoproject.com/documentation/templates/#stringformat
--
http://spinlock.ch/blog/
--~--~-~--~~-
Hi.
Which is the correct way to zero-pad an integer in templates? is there
any filter?
Thanks a lot.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to djan
3 matches
Mail list logo