How to store an integer leaded by zeros in django
- by Oscar Carballal
Hello,
I'm trying to store a number in django that looks like this:
000001
My problem is that if I type this inside an IntegerField it gets converted to "1" without the leading zeros. I've tried also with a DecimalField with the same result. How can I store the leading zeros whithout using a CharField? (I need to manipulate that number in it's integer form)