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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

