Both are required for a ForeignKey or ManyToManyField to be empty, ie: class GoalTag(models.Model): goals = models.ManyToManyField(Goal, blank=True, null=True,)
On Feb 11, 5:20 pm, Atamert Ölçgen <mu...@muhuk.com> wrote: > On Thursday 11 February 2010 05:18:44 kamilski81 wrote:> Is it possible to do: > > > class GoalTag(models.Model): > > goals = models.ManyToManyField(Goal, null=True) > > Try blank=True. That null=True is possibly redundant there. > > -- > Saygılarımla, > Atamert Ölçgen > > -+- > --+ > +++ > > www.muhuk.com > mu...@jabber.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.