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
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
2 matches
Mail list logo