Re: RelatedManager bug?

2010-10-23 Thread Lucasm
om = OtherModel.objects.create() om.my_models.create() On 21 Okt, 17:18, Daniel Roseman wrote: > On Oct 21, 4:01 pm, Lucasm wrote: > > > > > > > It seems that the following does not work as expected: > > > from django.db import models > > > class MyManager(models.Mana

RelatedManager bug?

2010-10-21 Thread Lucasm
It seems that the following does not work as expected: from django.db import models class MyManager(models.Manager): def create(self, *args, **kwargs): print "I am called!" return super(MyManager, self).create(*args, **kwargs) class OtherModel(models.Model): pass class