Re: Admin and ManyToManyField

2007-08-02 Thread Lucky B
null=True only affects the database representation, you need to set blank=True. The reason you can do it in the command line is that you can bypass admin's validators through the command line. On Aug 2, 11:08 am, Ramashish Baranwal <[EMAIL PROTECTED]> wrote: > Hi, > > I have a model that has a Ma

Admin and ManyToManyField

2007-08-02 Thread Ramashish Baranwal
Hi, I have a model that has a ManyToManyField. When I try to add/edit an object of this model in admin, it says that the ManyToManyField is required i.e. I can not leave it out. While, from the shell I can easily create an object without adding anything in the ManyToManyField. The same happens fo