Re: model refuses to save when manytomany field is blank

2011-04-04 Thread Kenneth Gonsalves
please ignore this - there was some validation that was messing with things On Mon, 2011-04-04 at 15:41 +0530, Kenneth Gonsalves wrote: > hi, > > i have a model like this: > class Incident(models.Model): > > escalate = models.IntegerField() > escalatelist = > models.ManyToManyField(E

model refuses to save when manytomany field is blank

2011-04-04 Thread Kenneth Gonsalves
hi, i have a model like this: class Incident(models.Model): escalate = models.IntegerField() escalatelist = models.ManyToManyField(Escalatelist,null=True,blank=True) other fields removed for clarity. If I save this in admin, I get this error: 'Incident' instance needs to have a prima