Thanks for the help...but I do not know ajax. Is there anything simpler 
like I heard about "create-field" option. Tried it , but not getting it 
done correctly.

On Sunday, September 17, 2017 at 3:00:14 PM UTC+5:30, Andréas Kühne wrote:
>
> 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 <zen...@gmail.com <javascript:>>:
>
>> 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...@googlegroups.com <javascript:>.
>> To post to this group, send email to django...@googlegroups.com 
>> <javascript:>.
>> 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/2088e144-e2f5-4351-a9d8-62954467da06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to