On 20 September 2011 15:52, Roald de Vries <downa...@gmail.com> wrote: > Hi all, > > Is there a fundamental reason that I'm missing (other than "nobody's taken > the trouble of writing it") that I can't do the following? If there isn't > I'll create a ticket for it. > > class R(Model): > user = ForeignKey(User) > my_model = ForeignKey('MyModel') > comment = CharField(max_length=100, blank=True) > > class MyModel(Model): > users = ManyToManyField(User, through=R, null=True) > > m = MyModel.objects.create() > u = User.objects.create_user('roald', 'downa...@gmail.com', 'password') > > > # these things I can't do: > m.users.add(u) > m.users.add(u, comment='Blablabla') > > Cheers, Roald >
I'm 100% sure there's *at least one* ticket for this. You just need to search for it and you'll probably find the discussion of this too. -- Łukasz Rekucki -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.