Re: RelatedManager bug?

2010-10-23 Thread Lucasm
Thanks for the reply, I wasn't aware of that. However, it seems that I should do the following, but I still can't get it to print the message :s. from django.db import models class MyManager(models.Manager): use_for_related_fields = True def create(self, *args, **kwargs): print

Re: RelatedManager bug?

2010-10-21 Thread Daniel Roseman
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.Manager): >     def create(self, *args, **kwargs): >         print "I am called!" >         return super(MyManager,

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

Re: auth.Message ignores directions from database router - Possible RelatedManager bug

2010-03-31 Thread Russell Keith-Magee
On Mon, Mar 29, 2010 at 9:28 AM, xin wrote: > I am unsure if this a bug in Django, or django-multidb-router, or > something I've done wrong. > > I'm using django-multidb-router from here: > http://github.com/jbalogh/django-multidb-router > With two database definitions, a

auth.Message ignores directions from database router - Possible RelatedManager bug

2010-03-28 Thread xin
I am unsure if this a bug in Django, or django-multidb-router, or something I've done wrong. I'm using django-multidb-router from here: http://github.com/jbalogh/django-multidb-router With two database definitions, a read_only_user and a read_write_user (with the intentions of having multiple