Automatic field filling

1

I'm developing a application with Django (1.6.2) and Python 2.7 for learning, the application performs searches, searches, and edits in the DB, in one of the registers that I realize I would like to apply an autocompletion function of other fields of the form, just like some sites in which you enter your CPF or ZIP code and the name and address fields are filled in automatically when you click out of the field filled.

Only in this case would the fields be filled in according to the primary key of the items already registered in my Database.

How would I be able to implement this function in my application?!

So far I have not used anything other than Django, Python and Bootstrap for the templates.

    
asked by anonymous 09.07.2014 / 19:04

1 answer

1

You will need to use JQuery to implement this functionality.

Are you doing this in django admin or in an application outside admin?

If it's in the admin, take a look at this documentation

    
10.07.2014 / 01:45