Re: How to do validation on a form which is opened by clicking a button

2020-03-01 Thread Sunil BK
. Februar 2020 13:26:20 UTC+1 schrieb Naveen Arora: > > Use this as below in your view - > > context["form"] = YourForm(request.POST or None) > > and just a method if form.is_valid(), there is no need for the else part. > > On Friday, 28 February 2020 02:41:04 UTC

How to do validation on a form which is opened by clicking a button

2020-02-27 Thread Sunil BK
Hello community I am trying to build a simple form which can be opened using a button. It should offer some fields which should be further process after validation. And there is exactly my issue. When I write some data into the fields and click the submit button. the validation error is NOT

Saving np.nan to sqlite database Django 2.1 in unit test fails

2020-02-13 Thread BK
I upgraded to django 2.1 and some of my unit tests (which use a sqlite database) are failing with the following: File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/django/db/models/query.py", line 268, in __iter__ 2113self._fetch_all() 2114 File

import error

2017-12-11 Thread Rabin BK
Please help me with

Drawbacks of Django 'render_to_string' shortcut method

2016-04-25 Thread Rajesh Bk
Hi All, Ca you please explain the limitations of *Django 'render_to_string' shortcut* method if any? Because, we can update the 'html' content easily with this nice method while we encounters in ajax requests.Normally, an ajax only get the response as json format values only, but by using

Re: Custom SQL in Q objects

2006-09-01 Thread bk
Thanks, Luke. I'll be working on an ajax solution, and will hopefully have something to post about it soon. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Custom SQL in Q objects

2006-08-31 Thread bk
I've got a similar situaton with trying to use 'limit_choices_to' on an intermediary table, but I haven't been able to get it working... Here's a quick abbreviated example: class Category(models.Model): name = models.CharField(maxlength=200) class Photo(models.Model): name =