Re: Problem with CheckboxSelectMultiple and ManyToManyField with Modelform

2011-06-18 Thread Kenneth Gonsalves
On Sat, 2011-06-18 at 19:59 +1200, Abhishek Tiwari wrote: > CheckboxSelectMultiple , otherwise I think documentation is quite good > but > some time there lot of bits are missing- no disrespect at all. > Coming back to m2m and choice mixing I get your point but in that case > where > will the choic

Re: Problem with CheckboxSelectMultiple and ManyToManyField with Modelform

2011-06-18 Thread Abhishek Tiwari
Hi Kenneth, Thanks. I mean, there is no example at all how to deal with CheckboxSelectMultiple , otherwise I think documentation is quite good but some time there lot of bits are missing- no disrespect at all. Coming back to m2m and choice mixing I get your point but in that case where will the cho

Re: Problem with CheckboxSelectMultiple and ManyToManyField with Modelform

2011-06-18 Thread Kenneth Gonsalves
On Fri, 2011-06-17 at 23:55 -0700, Abhishek Tiwari wrote: > class Business(models.Model): > business_group_choices = models.ManyToManyField(BusinessGroup, > verbose_name= "Business Group", choices=BUSINESS_GROUP) where in the 'poor' documentation did you get this construct from? You are m

Re: Problem with CheckboxSelectMultiple and ManyToManyField with Modelform

2011-06-17 Thread Abhishek Tiwari
I tried making fields null=True and/or blank=True still I get the validation error, why? With some changes on the whole set-up I got this new error, Select a valid choice. [u'MNC', u'INT', u'DOM', u'LOC', u'VIR'] is not one of the available choices. New setup: In the model class Busines

Problem with CheckboxSelectMultiple and ManyToManyField with Modelform

2011-06-17 Thread Abhishek Tiwari
Hi Everyone, I am quite new to Django(4months actually), I am struggling with this problem for last 2 days, I think I am making some stupid mistake. Any help or input is highly appreciated. I am using Django 1.3, so old (1.1 -) solutions are not helpful much actually there are many on stack-overflo