That really depends on how you want it 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:23 GMT+02:00 Mreno sert <zent...@gmail.com>:

> 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
> database
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/0e9d44e3-156b-4f5d-80da-5a0cfd0930d5%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/0e9d44e3-156b-4f5d-80da-5a0cfd0930d5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCcwa26V0v2Z-UK1QEUnx8nRD86_VhpkjAke4Hc41t%2BVaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to