Re: BaseModelFormSet > _construct_form

2019-04-03 Thread Nikolay Smirnov
I override add_prefix because on client side I use angularjs. In some cases it is impossible or not easy to use hyphens in the names. I do not overwrite _construct_form! That was just a possibility to solve that. But at the moment, I see no other options for solving that. I find it personally t

Re: django Query filter

2019-04-03 Thread Nikolay Smirnov
Your request.POST does not contain "search1". Do so search1 = request.POST.get('search1') Example: def viewstr(request): views = create_store.objects.all() brn = Prod_Brand.objects.all() mi = '' if request.method == 'POST': search1 = request.POST.get('search1') if s

Re: django Query filter

2019-04-04 Thread Nikolay Smirnov
The global POST variable allows you to access the data sent with the POST method by* input name*. See more info https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Sending_and_retrieving_form_data . Your html: First name: Last name: On Thursday, 4 April 2019 09:43

Re: django Query filter

2019-04-04 Thread Nikolay Smirnov
The global POST variable allows you to access the data sent with the POST method by* input name*. See more info https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Sending_and_retrieving_form_data . Your html: First name: Last name: On Wednesday, 3 April 2019 13:33:20