Hi,
I would like to do something like that, but I don't know if I can (I
didn't find it on djangoproject.com) :
Here is myClass :
myClass:
def __init__(self) :
...
....
def similiarity_to(other_object) :
return an integer
And somewhere in my view I want to do :
MyClass.objects.filter(similarity_to(some_object) >0 )
Is it possible to do so, meaning calling a method in filter?
Thx
Arbi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---