Autocomplete in Django

2017-09-16 Thread Mreno sert
I have a small app in which I have form for taking 5 inputs as City1, City2,City3,City4 and City5 as the fields. I have written a code for auto completing it but A user can not enter the new fields. Only existing values can be used. How can I make it to accept a new field if not present in the

Re: Autocomplete in Django

2017-09-17 Thread Mreno sert
t to work? > > I would probably add an item on the dropdown that shows the current items > in the database, with "Add city". If the user presses that you can have an > AJAX call that adds the item to the database. > > Regards, > > Andréas > > 2017-09-17 6: