How can I generate a mask to format an entry data, I mean, I'm working on a pretty old web application in django (1.5) and I want to format a field in a registration form (in this case, the Chilean the form xx.xxx.xxx-x) at the moment it is not necessary to validate that the entered routine is valid, only that it is of the aforementioned format, thanks in advance.
The idea is that regardless of the number you enter, this is how it is. PS: do not take into account the passport number.