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