Calling datepicker from a FormHelper - Using CrispyForms

2019-08-15 Thread chevalier
I am trying to call my JQuery datepicker from a FormHelper. I just can't find a way to send attributes to JQuery e.g "theme":"dark" etc. This is important for me because i want to define the format type also. class DeviceFilterFormHelper(FormHelper): form_id = "Device-search-form"

Re: Can't run manage.py

2019-08-15 Thread chevalier
On Wednesday, August 14, 2019 at 4:58:44 PM UTC-7, MATTHEW GODSTIME wrote: > > The error displayed is > > ' couldn't import Django I'm sure if it's install or in my python path > or if forget to activate my virtual environment' > > I have Django installed and activate my virtualenv were it

Unable to display two forms in a view - Django

2019-08-24 Thread chevalier
I have two related models (Sim and Payment - A Sim can have many Payment). On searching of Sim (by ID ) i want its detail to be populated in a form (*which i am able to*). But using the same form i want to save the details of Payment model as well and at the same time want to update the Sim

Re: Unable to display two forms in a view

2019-08-24 Thread chevalier
t/updatePayment.html', context) > > Thanks for you help On Saturday, August 24, 2019 at 9:24:03 AM UTC-7, Gil Obradors wrote: > > Of course, you don't have poppulated payment_form ? Only initializated, > > payment_form = AddPaymentForm() > > If I'm not helping you, pleas

Unable to display two forms in a view

2019-08-24 Thread chevalier
I have two related models (Sim and Payment - A Sim can have many Payment). On searching of Sim (by ID ) i want its detail to be populated in a form (*which i am able to*). But using the same form i want to save the details of Payment model as well and want to update the Sim model as well.