Also, in
https://github.com/django/django/blob/master/django/db/models/manager.py#L126
Is `manager_method.__name__` name of the query set Method?
On 17 June 2015 at 13:47, Utkarsh J wrote:
> Simon,
>
> I guess that is not what I am looking for. It will print "get_query_set"
> I am more intereste
Simon,
I guess that is not what I am looking for. It will print "get_query_set"
I am more interested in getting the names of methods.
On 17 June 2015 at 11:59, Simon Charette wrote:
> Hi Utkarsh,
>
> I guess you could define a __getattribute__[1] method on your manager?
>
> from django.db impo
Hi Utkarsh,
I guess you could define a __getattribute__[1] method on your manager?
from django.db import models
class MyManager(models.Manager):
def __getattribute__(self, name):
print(name)
return super(models.Manager, self).__getattribute__(name)
Simon
[1]
https://docs.p
I am trying to log overridden calls to QuerySetAPI. Say I am calling
Example.objects.filter(id=1)and I have following code in Models.py
objects = MyManager()
and in MyManager I have-
class MyManager(Manager):
def get_query_set(self):
# logging stuff I am doing
return super
4 matches
Mail list logo