It is done. Need to use def create(item) function to do so. Thanks for the 
reply.

On Thursday, September 21, 2017 at 1:33:57 PM UTC+5:30, Melvyn Sopacua 
wrote:
>
> What is City1Autocomplete? Show that code, specifically what it inherits 
> from. 
>
> On Tue, Sep 19, 2017 at 7:58 PM, Mitul Tyagi <mitult...@gmail.com 
> <javascript:>> wrote: 
> > Any help for this...Need to create new fields in case no match works for 
> > autocomplete.... 
> > 
> > 
> > On Tuesday, September 19, 2017 at 1:37:29 AM UTC+5:30, Mitul Tyagi 
> wrote: 
> >> 
> >> How to use create_field in django autocomplete. As per the doc 
> >> 
> http://django-autocomplete-light.readthedocs.io/en/master/tutorial.html#creation-of-new-choices-in-the-autocomplete-form
>  
> >> I am getting an error while doing so... " TypeError: 
> City1Autocomplete() 
> >> received an invalid keyword 'create_field'. as_view only accepts 
> arguments 
> >> that are already attributes of the class." 
> >> 
> >> 
> > -- 
> > 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/c34ed3e5-2817-4dc6-8d5b-1007e66f988e%40googlegroups.com.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Melvyn Sopacua 
>

-- 
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/9493cace-325b-4a05-8342-1a2987839fe3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to