On 2/18/07, akonsu <[EMAIL PROTECTED]> wrote: > > thanks for your response. > > specifying null=True for ManyToManyField will allow nulls in the > corresponding field in the association table, right? but since this > table is just a list of pairs this is not needed because having no > row at all has the same effect. correct? if so null=True is not > really necessary. or am i wrong?
that is correct, null has no effect for ManyToMany Field > > konstantin > > On Feb 17, 8:15 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > On Sun, 2007-02-18 at 01:09 +0000, akonsu wrote: > > > Hello, > > > > > i have set A that has many-to-many relationship with set B > > > > > currently admin interface (at least) forces me to select at least one > > > object from B if i add an object to A and the other way around. i do > > > not want that. i want to add an object to A which has no related > > > objects in B. > > > > > i need to have a model that enables empty relations. is there a way to > > > achieve this? > > > > You need to have specified null=True and blank=True on the > > ManyToManyField in your model (and you need to have done that before you > > created the database, otherwise it will not permit NULL values in that > > column). If you do that, it should work fine. > > > > Regards, > > Malcolm > > > > > -- Honza Kr�l E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

