Re: function get_form_kwargs() not being called

2018-12-14 Thread Simon A
And it really is that. I had to follow the steps required by vanilla migration procedure to make it work like I want it to. On Friday, December 14, 2018 at 11:11:07 PM UTC+8, Simon A wrote: > > Oh shoot, I think I know now why this isn't working for me. > > It is because I'm using vanilla for my

Re: function get_form_kwargs() not being called

2018-12-14 Thread Simon A
Oh shoot, I think I know now why this isn't working for me. It is because I'm using vanilla for my views. I'll continue to test. On Friday, December 14, 2018 at 8:34:15 PM UTC+8, Simon A wrote: > > Just to add, I used a django-crud cookie cutter to generate codes for CRUD > > On Monday, Decembe

Re: function get_form_kwargs() not being called

2018-12-14 Thread Simon A
Just to add, I used a django-crud cookie cutter to generate codes for CRUD On Monday, December 10, 2018 at 8:47:28 PM UTC+8, Simon A wrote: > > I'm trying to pass a parameter from a redirect to the CreateView and to > the form. > > I have no problem retrieving the value from the redirect to the

Re: function get_form_kwargs() not being called

2018-12-12 Thread Simon A
ith the same name? > > Especially since you do have other class-based views, you must know what > you’re doing. > > > > *From:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *Simon A > *Sent:* Tuesday, December 11, 2018 10:32 PM > *T

RE: function get_form_kwargs() not being called

2018-12-12 Thread Matthew Pava
@googlegroups.com] On Behalf Of Simon A Sent: Tuesday, December 11, 2018 10:32 PM To: Django users Subject: Re: function get_form_kwargs() not being called I identified that a more efficient way of doing this would be to call the get initial method but for some reason it doesn't seem to trigger the fun

Re: function get_form_kwargs() not being called

2018-12-11 Thread Simon A
I identified that a more efficient way of doing this would be to call the get initial method but for some reason it doesn't seem to trigger the function that I'm trying to overriede. *class NoteCreate(CreateView):* *login_url = 'login'* *model = Note* *form_class = NoteForm* *suc

function get_form_kwargs() not being called

2018-12-10 Thread Simon A
I'm trying to pass a parameter from a redirect to the CreateView and to the form. I have no problem retrieving the value from the redirect to the CreateView. But my issue is when trying get the value to the form. I'm overriding get_form_kwargs function of my CreateView but when I try to do o