Created
April 17, 2013 22:26
-
-
Save douglasmiranda/5408278 to your computer and use it in GitHub Desktop.
Leading zeros in django templates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ variable|stringformat:"02d" }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! this was super useful and still works on Django 2.2